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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.10MB] [CPU: ▼13.91ms] Passed 4 tests
Analyzing server-side resources used by Oboxmedia Ads
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.00 | 45.74 ▼13.96 |
Dashboard /wp-admin | 3.34 ▲0.03 | 48.09 ▼27.48 |
Posts /wp-admin/edit.php | 3.39 ▼0.46 | 49.33 ▼1.16 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.66 ▼13.03 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.41 ▲4.39 |
Oboxads Settings /wp-admin/options-general.php?page=oboxads | 3.25 | 31.34 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_oboxads-ad-widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Oboxmedia Ads
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 15.15 ▲0.64 | 27.56 ▲25.72 | 41.76 ▼6.66 |
Dashboard /wp-admin | 2,210 ▲27 | 5.80 ▲0.89 | 98.13 ▼78.14 | 36.11 ▼36.23 |
Posts /wp-admin/edit.php | 2,072 ▼20 | 2.00 ▲0.01 | 37.03 ▼5.82 | 32.64 ▼0.64 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 23.00 ▲0.01 | 572.95 ▼46.66 | 55.64 ▼6.69 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▼0.00 | 94.95 ▼1.05 | 40.82 ▼1.48 |
Oboxads Settings /wp-admin/options-general.php?page=oboxads | 786 | 2.03 | 26.29 | 29.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_oboxads-ad-widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/oboxmedia-ads/views/public.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/oboxmedia-ads/includes/oboxads-ad-widget.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: oboxmediacom, ads, publishing, oboxmedia, advertising
oboxmedia-ads/oboxmedia-ads-plugin.php 85% from 13 tests
Analyzing the main PHP file in "Oboxmedia Ads" version 1.9.3
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("oboxmedia-ads.php" instead of "oboxmedia-ads-plugin.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin942 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 275 | 377 | 923 |
JSON | 2 | 0 | 0 | 10 |
Bourne Shell | 1 | 1 | 0 | 8 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 4 | 28.57% |
▷ Public methods | 13 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.14% |
Functions | 22 | |
▷ Named functions | 21 | 95.45% |
▷ Anonymous functions | 1 | 4.55% |
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 files were detected