Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/ads-widgets-easy/ads-widgets-easy.php+113
Function create_function() is deprecated
Server metrics [RAM: ▼2.19MB] [CPU: ▼348.94ms] Passed 4 tests
Analyzing server-side resources used by Ads Widgets Easy
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▼1.37 | 8.67 ▼48.29 |
Dashboard /wp-admin | 2.85 ▼1.18 | 7.31 ▼38.91 |
Posts /wp-admin/edit.php | 2.86 ▼1.47 | 9.63 ▼44.39 |
Add New Post /wp-admin/post-new.php | 2.85 ▼4.74 | 9.72 ▼1,264.15 |
Media Library /wp-admin/upload.php | 2.85 ▼1.13 | 7.38 ▼25.01 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_image_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ads Widgets Easy
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,978 ▲224 | 17.47 ▲1.76 | 5.88 ▼0.73 | 2.06 ▼0.74 |
Dashboard /wp-admin | 3,087 ▲230 | 8.01 ▲1.89 | 147.23 ▲16.37 | 163.17 ▼5.31 |
Posts /wp-admin/edit.php | 2,918 ▲224 | 5.16 ▲1.93 | 77.56 ▲11.64 | 142.78 ▲1.64 |
Add New Post /wp-admin/post-new.php | 1,663 ▼89 | 16.35 ▼5.23 | 404.22 ▼101.34 | 212.33 ▲56.91 |
Media Library /wp-admin/upload.php | 1,692 ▼6 | 5.48 ▼0.07 | 114.50 ▼33.61 | 237.69 ▲46.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/ads-widgets-easy/ads-widgets-easy.php+113
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 1 option
- widget_image_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ads-widgets-easy/ads-widgets-easy.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
ads-widgets-easy/ads-widgets-easy.php 92% from 13 tests
The principal PHP file in "Ads Widgets Easy" v. 2.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 159 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin96 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 11 | 36 | 71 |
JavaScript | 1 | 0 | 3 | 25 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected