90% remove-disqus-ads

Code Review | Remove Disqus Ads

WordPress plugin Remove Disqus Ads scored90%from 54 tests.

About plugin

  • Plugin page: remove-disqus-ads
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.3.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: May 3, 2019
  • Latest release: May 4, 2019
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: redatom (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /2,221 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.93ms] Passed 4 tests

This is a short check of server-side resources used by Remove Disqus Ads
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.03 ▼8.32
Dashboard /wp-admin3.32 ▲0.0250.56 ▼1.07
Posts /wp-admin/edit.php3.37 ▲0.0248.86 ▼2.99
Add New Post /wp-admin/post-new.php5.90 ▲0.0299.96 ▼4.07
Media Library /wp-admin/upload.php3.24 ▲0.0236.03 ▼4.32

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
remove_disqus_ads_version
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Remove Disqus Ads
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲16013.92 ▼0.468.52 ▲6.3840.25 ▼3.79
Dashboard /wp-admin2,209 ▲216.07 ▲1.18104.10 ▼4.6938.61 ▼3.44
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0137.87 ▼3.7434.85 ▼3.12
Add New Post /wp-admin/post-new.php1,533 ▼923.17 ▲4.77660.37 ▼27.7255.34 ▲2.16
Media Library /wp-admin/upload.php1,385 ▼34.18 ▼0.0298.77 ▼13.4744.81 ▼2.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • remove_disqus_ads_version
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: ads, disqus, remove ads, adblock

remove-disqus-ads/remove-disqus-ads.php Passed 13 tests

The entry point to "Remove Disqus Ads" version 1.0.2 is a PHP file that has certain tags in its header comment area
41 characters long description:
Remove annoying ads from Disqus Comments.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin76 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP42812056
JavaScript11013
Markdown1307

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin