Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼0.60ms] Passed 4 tests
Analyzing server-side resources used by Adcovery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 48.57 ▲8.23 |
Dashboard /wp-admin | 3.49 ▲0.18 | 54.68 ▲0.08 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 51.82 ▼0.30 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 90.52 ▼8.25 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 38.56 ▲6.08 |
Adcovery /wp-admin/options-general.php?page=adcovery_admin_page | 3.33 | 36.72 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
adcovery_last_error_msg |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
adcovery_last_heartbeat |
Browser metrics Passed 4 tests
Checking browser requirements for Adcovery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲49 | 14.10 ▼0.27 | 2.26 ▲0.24 | 44.16 ▼0.26 |
Dashboard /wp-admin | 2,201 ▲21 | 5.66 ▲0.05 | 93.54 ▲0.35 | 38.79 ▼5.18 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.00 ▲0.02 | 38.33 ▼3.70 | 36.94 ▼1.28 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.00 ▼0.13 | 676.51 ▼6.36 | 48.26 ▼20.39 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▲0.00 | 100.98 ▼4.14 | 45.50 ▲1.10 |
Adcovery /wp-admin/options-general.php?page=adcovery_admin_page | 843 | 2.00 | 21.68 | 26.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/adcovery/uninstall.php+35
Constant ADCOVERY_PLUGIN_DIR already defined
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > 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: Class 'Adcovery' not found in wp-content/plugins/adcovery/admin/class-adcovery-admin.php:23
- > 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
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in adcovery/assets to your readme.txt
adcovery/adcovery.php Passed 13 tests
The main PHP file in "Adcovery" ver. 1.0.1 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 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected756 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 400 | 652 | 717 |
CSS | 1 | 3 | 0 | 39 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 7.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 10 | 15.62% |
▷ Public methods | 54 | 84.38% |
▷ Protected methods | 2 | 3.12% |
▷ Private methods | 8 | 12.50% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin