Benchmarks
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
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼9.64ms] Passed 4 tests
A check of server-side resources used by AdControl
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 42.69 ▼0.53 |
Dashboard /wp-admin | 3.42 ▲0.07 | 50.38 ▼21.01 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 51.09 ▼7.19 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 95.42 ▼9.81 |
Media Library /wp-admin/upload.php | 3.35 ▲0.11 | 40.73 ▲8.65 |
AdControl /wp-admin/options-general.php?page=adcontrol | 3.31 | 30.77 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_adcontrol_sidebar_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AdControl
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲57 | 14.72 ▲0.82 | 1.67 ▲0.22 | 42.23 ▲5.47 |
Dashboard /wp-admin | 2,209 ▲29 | 5.62 ▼0.04 | 92.34 ▼1.85 | 43.69 ▼3.15 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.04 ▲0.03 | 39.51 ▲5.58 | 37.30 ▲0.41 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.27 ▲0.30 | 685.76 ▼5.68 | 55.08 ▲2.59 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.24 ▲0.01 | 96.13 ▼5.97 | 41.54 ▼4.29 |
AdControl /wp-admin/options-general.php?page=adcontrol | 785 | 2.03 | 25.67 | 28.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_adcontrol_sidebar_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/radcontrol/php/widgets.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/radcontrol/adcontrol.php:32
- > PHP Fatal error
Uncaught Error: Class 'Jetpack' not found in wp-content/plugins/radcontrol/php/admin.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/radcontrol/php/cron.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/radcontrol/php/no-jetpack.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: ads, advertising, ad codes
radcontrol/adcontrol.php 77% from 13 tests
The main PHP script in "AdControl" version 1.5 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 165 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("radcontrol.php" instead of "adcontrol.php")
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
Success! There were no dangerous files found in this plugin1,267 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 214 | 442 | 1,209 |
CSS | 1 | 7 | 17 | 39 |
JavaScript | 1 | 4 | 0 | 19 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 20 | 25.32% |
▷ Public methods | 77 | 97.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.53% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin