Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/adseasy/class-lib/AE_WidgetClass.php+258
Function create_function() is deprecated
Server metrics [RAM: ▼1.63MB] [CPU: ▼49.58ms] Passed 4 tests
An overview of server-side resources used by Ads Easy
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.36 ▼1.10 | 7.09 ▼31.73 |
Dashboard /wp-admin | 2.38 ▼0.92 | 8.39 ▼39.47 |
Posts /wp-admin/edit.php | 2.38 ▼0.98 | 7.86 ▼40.89 |
Add New Post /wp-admin/post-new.php | 2.38 ▼3.51 | 8.61 ▼86.21 |
Media Library /wp-admin/upload.php | 2.38 ▼0.85 | 7.57 ▼28.84 |
Ads Easy /wp-admin/plugins.php?page=ads-easy-settings | 2.38 | 9.44 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
ae_options |
theysaidso_admin_options |
db_upgraded |
widget_ads_easy_widget |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Ads Easy
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲48 | 14.25 ▼0.30 | 1.66 ▼0.06 | 44.03 ▲2.28 |
Dashboard /wp-admin | 2,202 ▲25 | 5.52 ▼0.08 | 82.58 ▼2.42 | 77.73 ▲30.91 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 2.03 ▲0.06 | 34.06 ▼4.27 | 30.84 ▼6.87 |
Add New Post /wp-admin/post-new.php | 1,557 ▲19 | 23.14 ▲0.06 | 756.02 ▲67.99 | 57.12 ▲2.17 |
Media Library /wp-admin/upload.php | 1,422 ▲19 | 4.13 ▼0.03 | 96.52 ▲0.19 | 71.75 ▲26.81 |
Ads Easy /wp-admin/plugins.php?page=ads-easy-settings | 1,049 | 4.86 | 58.38 | 55.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/adseasy/class-lib/AE_WidgetClass.php+258
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- widget_ads_easy_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/plugins.php?page=ads-easy-settings
- > Deprecated in wp-content/plugins/adseasy/class-lib/AE_WidgetClass.php+258
Function create_function() is deprecated
- > GET request to /wp-admin/plugins.php?page=ads-easy-settings
- > Notice in wp-content/plugins/adseasy/class-lib/AE_AdminClass.php+119
Undefined index: use_google_tags
- > GET request to /wp-admin/plugins.php?page=ads-easy-settings
- > Notice in wp-content/plugins/adseasy/class-lib/AE_AdminClass.php+133
Undefined index: ae_css
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
Please fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'A5_OptionPage' not found in wp-content/plugins/adseasy/class-lib/AE_AdminClass.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/adseasy/class-lib/A5_WidgetClass.php:14
- > PHP Fatal error
Uncaught Error: Class 'A5_Widget' not found in wp-content/plugins/adseasy/class-lib/AE_WidgetClass.php:12
- > PHP Fatal error
Uncaught Error: Class 'A5_DynamicFiles' not found in wp-content/plugins/adseasy/class-lib/AE_DynamicCSSClass.php:13
- > 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)
Please fix the following user-side errors
- > GET request to /wp-admin/plugins.php?page=ads-easy-settings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/adseasy/ta-expander.min.js?ver=3.0:1:2865)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/plugins.php?page=ads-easy-settings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
adseasy/adseasy.php 92% from 13 tests
Analyzing the main PHP file in "Ads Easy" version 3.3
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 283 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,928 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 1,053 | 538 | 1,310 |
PO File | 2 | 131 | 140 | 407 |
JavaScript | 7 | 88 | 51 | 211 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 17.78 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 88 | |
▷ Static methods | 24 | 27.27% |
▷ Public methods | 85 | 96.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.41% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/a5-icon-11.png | 0.67KB | 0.42KB | ▼ 37.17% |
tinymce/AdsEasy.png | 3.83KB | 1.25KB | ▼ 67.28% |
img/a5-icon-34.png | 1.65KB | 1.35KB | ▼ 18.07% |