Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼1.17MB] [CPU: ▼324.36ms] Passed 4 tests
An overview of server-side resources used by Ad Box
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.10 | 56.12 ▲9.57 |
Dashboard /wp-admin | 3.16 ▼0.25 | 16.66 ▼18.58 |
Posts /wp-admin/edit.php | 3.16 ▼0.48 | 18.31 ▼19.29 |
Add New Post /wp-admin/post-new.php | 3.16 ▼3.81 | 17.08 ▼1,248.55 |
Media Library /wp-admin/upload.php | 3.16 ▼0.14 | 16.01 ▼11.01 |
Ad Box /wp-admin/options-general.php?page=ad-box/ad-box.php | 3.16 | 18.32 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_adboxwidget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ad Box
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,915 ▲161 | 16.36 ▲0.73 | 10.36 ▲4.65 | 2.81 ▲0.03 |
Dashboard /wp-admin | 2,904 ▲50 | 6.20 ▲0.01 | 114.21 ▼25.73 | 152.79 ▼13.35 |
Posts /wp-admin/edit.php | 2,700 ▲6 | 3.24 ▲0.00 | 61.92 ▼2.20 | 139.83 ▼4.55 |
Add New Post /wp-admin/post-new.php | 1,775 ▲17 | 17.46 ▼4.72 | 416.65 ▼41.76 | 169.64 ▲14.18 |
Media Library /wp-admin/upload.php | 1,710 ▲12 | 5.57 ▲0.02 | 145.73 ▲4.71 | 184.95 ▲4.72 |
Ad Box /wp-admin/options-general.php?page=ad-box/ad-box.php | 914 | 4.21 | 136.99 | 183.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5600
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_adboxwidget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ad-box/ad-box.php
- > User deprecated in wp-includes/functions.php+5600
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ad-box/includes/setting-page/medust-footer.php
- > /wp-content/plugins/ad-box/includes/setting-page/medust-right-column.php
- > /wp-content/plugins/ad-box/includes/setting-page/medust-right-panel2.php
- > /wp-content/plugins/ad-box/includes/setting-page/medust-right-panel1.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ad-box/includes/setting-page/medust-left-column.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/ad-box/includes/settings-page.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ad-box/ad-box.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=ad-box/ad-box.php
- > Network (severe)
http://www.larnr.com/template/images/courses/android-training.jpg - Failed to load resource: net::ERR_CONNECTION_REFUSED
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
ad-box/ad-box.php Passed 13 tests
Analyzing the main PHP file in "Ad Box" version 1.1
87 characters long description:
Add an advertising widget to your sidebar that gives you lots of customization options.
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
There were no executable files found in this plugin1,880 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 365 | 47 | 1,472 |
PHP | 7 | 110 | 102 | 374 |
JavaScript | 2 | 8 | 0 | 34 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 6.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 1 | 25.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin