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.15MB] [CPU: ▼9.86ms] Passed 4 tests
A check of server-side resources used by Ad Refresh Control
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 38.62 ▼5.10 |
Dashboard /wp-admin | 3.46 ▲0.11 | 46.96 ▼15.63 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 46.15 ▼0.66 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 81.86 ▼15.95 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 34.15 ▼2.75 |
Ad Refresh Control /wp-admin/options-general.php?page=ad-refresh-control-settings | 3.35 | 30.72 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Ad Refresh Control
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲12 | 14.73 ▲0.31 | 4.64 ▲2.50 | 43.13 ▼1.64 |
Dashboard /wp-admin | 2,202 ▲22 | 5.65 ▲0.07 | 90.43 ▼6.34 | 41.00 ▼5.01 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.99 ▼0.01 | 37.33 ▼1.32 | 32.96 ▼6.11 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.34 ▲0.31 | 658.17 ▼26.99 | 51.65 ▼1.24 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.17 ▼0.01 | 96.24 ▼19.77 | 42.69 ▼3.02 |
Ad Refresh Control /wp-admin/options-general.php?page=ad-refresh-control-settings | 894 | 2.19 | 24.68 | 27.01 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ad-refresh-control/ad-refresh-control.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: ad manager, google
ad-refresh-control/ad-refresh-control.php 92% from 13 tests
Analyzing the main PHP file in "Ad Refresh Control" version 1.1.4
Please make the necessary changes and fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
Everything looks great! No dangerous files found in this plugin961 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 226 | 575 | 955 |
JSON | 1 | 0 | 0 | 5 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 23.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 19 | 46.34% |
▷ Public methods | 38 | 92.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.32% |
Functions | 31 | |
▷ Named functions | 22 | 70.97% |
▷ Anonymous functions | 9 | 29.03% |
Constants | 4 | |
▷ Global constants | 4 | 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