84% adcovery

Code Review | Adcovery

WordPress plugin Adcovery scored 84% from 54 tests.

About plugin

  • Plugin page: adcovery
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 5.9.2
  • First release: Feb 11, 2021
  • Latest release: Feb 11, 2021
  • Number of updates: 11
  • Update frequency: N/A
  • Top authors: adcovery (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 232 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼306.45ms] Passed 4 tests

This is a short check of server-side resources used by Adcovery
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.1958.41 ▲1.33
Dashboard /wp-admin3.54 ▲0.1333.47 ▼29.13
Posts /wp-admin/edit.php3.77 ▲0.1236.83 ▼24.64
Add New Post /wp-admin/post-new.php7.07 ▲0.1098.74 ▼1,168.55
Media Library /wp-admin/upload.php3.48 ▲0.1827.04 ▼3.48
Adcovery /wp-admin/options-general.php?page=adcovery_admin_page3.4025.18

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 2 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Adcovery
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,790 ▲3514.65 ▼1.426.86 ▲1.082.23 ▼0.79
Dashboard /wp-admin2,897 ▲436.07 ▼0.18127.02 ▼9.46225.86 ▲70.48
Posts /wp-admin/edit.php2,692 ▼23.23 ▲0.0065.13 ▼3.28138.05 ▼5.99
Add New Post /wp-admin/post-new.php1,671 ▲1620.42 ▼0.04436.78 ▼6.83190.49 ▲3.78
Media Library /wp-admin/upload.php1,708 ▲105.53 ▲0.01141.52 ▼10.03253.71 ▲59.39
Adcovery /wp-admin/options-general.php?page=adcovery_admin_page1,0602.4053.22110.80

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
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/adcovery/uninstall.php+35
    Constant ADCOVERY_PLUGIN_DIR already defined

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Adcovery' not found in wp-content/plugins/adcovery/includes/class-adcovery-heartbeat.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function status_header() in wp-content/plugins/adcovery/uninstall.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/adcovery/admin/partials/adcovery-admin-display.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Adcovery' not found in wp-content/plugins/adcovery/admin/class-adcovery-admin.php:23

User-side errors Passed 1 test

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


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: These screenshots lack descriptions #1, #2, #3 in adcovery/assets to your readme.txt
Please take inspiration from this readme.txt

adcovery/adcovery.php Passed 13 tests

The main PHP file in "Adcovery" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
39 characters long description:
Resilient Advertising For Your Website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin756 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code

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.30
Average class complexity7.18
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
▷ Static methods1015.62%
▷ Public methods5484.38%
▷ Protected methods23.12%
▷ Private methods812.50%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants11100.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