Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/zool-viral-ads/zoolviralads.php+194
Methods with the same name as their class will not be constructors in a future version of PHP; zool_widget has a deprecated constructor
Server metrics [RAM: ▼1.89MB] [CPU: ▼55.76ms] Passed 4 tests
Server-side resources used by Zool Viral Ads
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.99 ▼39.39 |
Dashboard /wp-admin | 2.11 ▼1.19 | 5.55 ▼55.72 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 5.40 ▼42.46 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.77 | 9.09 ▼85.45 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 6.36 ▼26.15 |
Zool Viral Ads /wp-admin/options-general.php?page=zool-viral-ads | 2.12 | 6.37 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_zool_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Zool Viral Ads
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.34 ▼0.26 | 2.10 ▲0.29 | 42.70 ▼0.38 |
Dashboard /wp-admin | 2,199 ▲22 | 5.68 ▲0.01 | 92.47 ▼8.00 | 40.04 ▼4.92 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.98 ▼0.05 | 37.03 ▲2.39 | 36.43 ▲2.09 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.26 ▲0.32 | 661.98 ▼33.46 | 58.37 ▲3.60 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.21 ▼0.02 | 95.83 ▼6.66 | 42.07 ▼0.48 |
Zool Viral Ads /wp-admin/options-general.php?page=zool-viral-ads | 847 | 2.03 | 24.55 | 26.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/zool-viral-ads/zoolviralads.php+194
Methods with the same name as their class will not be constructors in a future version of PHP; zool_widget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_zool_widget
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=zool-viral-ads
- > Deprecated in wp-content/plugins/zool-viral-ads/zoolviralads.php+194
Methods with the same name as their class will not be constructors in a future version of PHP; zool_widget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=zool-viral-ads
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in zool_widget is deprecated since version 4.3.0! Use __construct() instead.
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=zool-viral-ads
- > Notice in wp-content/plugins/zool-viral-ads/zoolviralads.php+141
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/zool-viral-ads/zoolviralads.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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:
- Tags: You are using too many tags: 24 tag instead of maximum 10
zool-viral-ads/zoolviralads.php 85% from 13 tests
The principal PHP file in "Zool Viral Ads" v. 1.1.1.13 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 172 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zool-viral-ads.php" instead of "zoolviralads.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin175 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 67 | 35 | 173 |
CSS | 2 | 1 | 17 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
No PNG images were found in this plugin