Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.52MB] [CPU: ▲6.18ms] Passed 4 tests
An overview of server-side resources used by WP Visual Adverts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.49 | 47.03 ▲4.59 |
Dashboard /wp-admin | 3.83 ▲0.53 | 54.35 ▲6.86 |
Posts /wp-admin/edit.php | 3.85 ▲0.50 | 62.04 ▲13.48 |
Add New Post /wp-admin/post-new.php | 6.48 ▲0.60 | 95.60 ▲3.76 |
Media Library /wp-admin/upload.php | 3.79 ▲0.57 | 45.15 ▲9.49 |
Categories /wp-admin/edit-tags.php?taxonomy=advert-category&post_type=adverts | 3.74 | 44.88 |
Settings /wp-admin/admin.php?page=adverts-settings | 3.66 | 39.67 |
Adverts /wp-admin/edit.php?post_type=adverts | 3.75 | 45.75 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 81 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_rpadv_widget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WP Visual Adverts: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲210 | 14.15 ▼0.28 | 5.92 ▲3.56 | 40.96 ▼9.70 |
Dashboard /wp-admin | 2,256 ▲68 | 5.17 ▲0.29 | 109.91 ▼0.97 | 39.94 ▼2.59 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.33 ▲0.29 | 36.66 ▼5.25 | 32.53 ▼1.94 |
Add New Post /wp-admin/post-new.php | 1,563 ▲29 | 23.32 ▲0.02 | 641.65 ▼31.16 | 34.71 ▼15.89 |
Media Library /wp-admin/upload.php | 1,448 ▲63 | 4.45 ▲0.25 | 90.93 ▼10.77 | 45.93 ▼1.00 |
Categories /wp-admin/edit-tags.php?taxonomy=advert-category&post_type=adverts | 1,323 | 2.06 | 31.47 | 29.72 |
Settings /wp-admin/admin.php?page=adverts-settings | 1,132 | 1.96 | 28.31 | 36.86 |
Adverts /wp-admin/edit.php?post_type=adverts | 1,098 | 2.27 | 35.98 | 28.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- widget_rpadv_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=adverts-settings
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/admin.php?page=adverts-settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 fix the following items
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-visual-adverts/agp-core/templates/admin/options/render-tabs.php
- > /wp-content/plugins/wp-visual-adverts/agp-core/templates/admin/fields/repeater/header.php
- > /wp-content/plugins/wp-visual-adverts/templates/admin/options/fields/select.php
- > /wp-content/plugins/wp-visual-adverts/agp-core/templates/admin/options/fields/select.php
- 145× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: params in wp-content/plugins/wp-visual-adverts/agp-core/templates/admin/options/render-page.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-visual-adverts/templates/admin/options/fields/select.php on line 15
- > PHP Notice
Trying to get property 'field' of non-object in wp-content/plugins/wp-visual-adverts/templates/admin/options/fields/checkbox.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-visual-adverts/agp-core/templates/admin/options/fields/select.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-visual-adverts/agp-core/templates/admin/options/fields/textarea.php:15
- > PHP Notice
Trying to get property 'fields' of non-object in wp-content/plugins/wp-visual-adverts/agp-core/templates/admin/options/fields/select.php on line 15
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-visual-adverts/agp-core/templates/admin/options/fields/select.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'Webcodin\\WPVisualAdverts\\Core\\Agp_DbAbstract' not found in wp-content/plugins/wp-visual-adverts/agp-core/classes/database/Agp_MySqlDb.class.php:4
- > PHP Notice
Trying to get property 'field' of non-object in wp-content/plugins/wp-visual-adverts/agp-core/templates/admin/options/fields/hidden.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function RPAdv() in wp-content/plugins/wp-visual-adverts/templates/rpadv-widget.php:1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
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 require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
wp-visual-adverts/wp-visual-adverts.php Passed 13 tests
"WP Visual Adverts" version 2.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
66 characters long description:
A plugin for WordPress that let you add visual adverts to sidebars
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
No dangerous file extensions were detected3,412 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 64 | 649 | 490 | 3,180 |
CSS | 3 | 7 | 50 | 115 |
JavaScript | 4 | 22 | 0 | 107 |
Markdown | 2 | 4 | 0 | 9 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 12.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 9 | 33.33% |
▷ Concrete classes | 18 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 331 | |
▷ Static methods | 8 | 2.42% |
▷ Public methods | 327 | 98.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 1.21% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icons/icon-128x128.png | 23.62KB | 6.97KB | ▼ 70.47% |