Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.34ms] Passed 4 tests
An overview of server-side resources used by Easy Ad Placement - for AdSense and other Ads
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 35.93 ▼4.15 |
Dashboard /wp-admin | 3.40 ▲0.06 | 43.62 ▼17.31 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 45.41 ▲1.16 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 82.55 ▲0.29 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 34.09 ▼0.19 |
Easy Ad Placement /wp-admin/options-general.php?page=easy-ad-placement/easy-ad-placement.php | 3.29 | 36.49 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Ad Placement - for AdSense and other Ads
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲58 | 13.65 ▼0.73 | 1.74 ▼0.34 | 37.35 ▼6.62 |
Dashboard /wp-admin | 2,210 ▲19 | 5.80 ▲0.96 | 99.60 ▼7.52 | 39.52 ▼4.08 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.04 | 34.59 ▼0.86 | 30.62 ▼5.78 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.36 ▲0.19 | 682.60 ▼6.30 | 60.98 ▲8.70 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.23 ▲0.04 | 107.38 ▲2.01 | 44.82 ▼1.29 |
Easy Ad Placement /wp-admin/options-general.php?page=easy-ad-placement/easy-ad-placement.php | 1,366 | 2.07 | 27.61 | 31.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-ad-placement/shortcodes.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-ad-placement/shortcodes.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (Options-Menu)
- Plugin Name: You should set the name of your plugin on the first line (
=== easy-ad-placement ===
) - Tags: There are too many tags (13 tag instead of maximum 10)
easy-ad-placement/easy-ad-placement.php Passed 13 tests
The principal PHP file in "Easy Ad Placement - for AdSense and other Ads" v. 1.4 is loaded by WordPress automatically on each request
83 characters long description:
A great Wordpress Plugin to place Ads from AdSense and other Ads anywhere you want.
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
There were no executable files found in this plugin496 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 67 | 20 | 445 |
PO File | 1 | 16 | 111 | 51 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin