Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.88ms] Passed 4 tests
This is a short check of server-side resources used by Simple Ad Spot by 99 Robots
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 46.87 ▲4.32 |
Dashboard /wp-admin | 3.34 ▼0.01 | 48.18 ▼13.08 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.03 ▼3.86 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.84 ▼6.90 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.37 ▲4.40 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_wpsite-simple-ad-spot |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Ad Spot by 99 Robots
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.20 ▼0.16 | 1.69 ▼0.13 | 44.21 ▲0.58 |
Dashboard /wp-admin | 2,198 ▲30 | 5.61 ▲0.05 | 89.36 ▲3.06 | 39.05 ▼3.01 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.02 | 34.56 ▼6.62 | 34.02 ▼4.67 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.20 ▼0.36 | 652.62 ▼7.42 | 51.37 ▲4.30 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.18 ▲0.05 | 97.14 ▲0.91 | 40.17 ▼1.05 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_wpsite-simple-ad-spot
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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 fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpsite-simple-ad-spot/wpsite-simple-ad-spot.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: ""
wpsite-simple-ad-spot/wpsite-simple-ad-spot.php Passed 13 tests
The main PHP file in "Simple Ad Spot by 99 Robots" ver. 1.1.7 adds more information about the plugin and also serves as the entry point for this plugin
105 characters long description:
The DraftPress Simple Ad Spot plugin is the easiest way to place an advertisement in your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected91 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 27 | 56 | 91 |
Markdown | 1 | 1 | 0 | 0 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 6 | |
▷ Static methods | 2 | 33.33% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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 files were detected