Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.23ms] Passed 4 tests
Analyzing server-side resources used by Plugin Name: GMO Ads Master
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.38 ▼2.41 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.84 ▲0.78 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.34 ▼5.41 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.64 ▼17.87 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.85 ▲3.53 |
GMO Ads Master /wp-admin/options-general.php?page=gmoadsmaster | 3.23 | 33.07 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
gmoadsmaster_activation |
theysaidso_admin_options |
widget_recent-posts |
widget_gmo_ad_widget |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Plugin Name: GMO Ads Master: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲9 | 14.69 ▲0.07 | 1.87 ▲0.10 | 43.20 ▼4.85 |
Dashboard /wp-admin | 2,193 ▲16 | 5.51 ▼0.10 | 84.36 ▼11.40 | 39.46 ▼3.67 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▼0.01 | 33.43 ▼9.06 | 40.71 ▲3.32 |
Add New Post /wp-admin/post-new.php | 1,531 ▼6 | 23.19 ▲5.04 | 653.20 ▲8.94 | 67.72 ▲3.63 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.19 ▼0.02 | 102.54 ▼0.22 | 44.01 ▲2.39 |
GMO Ads Master /wp-admin/options-general.php?page=gmoadsmaster | 1,003 | 2.17 | 23.61 | 28.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_gmo_ad_widget
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/gmo-ads-master/gmo-ads-master.php:33
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gmo-ads-master/includes/gmo_ad_widget.php:9
- > 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 take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=gmoadsmaster
- > Network (severe)
wp-content/plugins/gmo-ads-master/images/bnr_themes.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=gmoadsmaster
- > Network (severe)
wp-content/plugins/gmo-ads-master/css/gmo-admin-plugin.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=gmoadsmaster
- > Network (severe)
wp-content/plugins/gmo-ads-master/images/bnr_plugins.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=gmoadsmaster
- > Network (severe)
wp-content/plugins/gmo-ads-master/images/logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== Plugin Name: GMO Ads Master ===
)
gmo-ads-master/gmo-ads-master.php 85% from 13 tests
The principal PHP file in "Plugin Name: GMO Ads Master" v. 1.3 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 325 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin656 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 81 | 38 | 445 |
Sass | 2 | 25 | 0 | 109 |
XML | 5 | 0 | 0 | 36 |
JavaScript | 1 | 5 | 12 | 35 |
JSON | 1 | 0 | 0 | 25 |
CSS | 4 | 1 | 9 | 4 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 84.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 16.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.24MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wpshop_logo.png | 7.22KB | 5.91KB | ▼ 18.12% |
images/wpcloud_bnr_plugins.png | 9.14KB | 4.07KB | ▼ 55.50% |
images/wpshop_bnr_themes.png | 13.39KB | 5.79KB | ▼ 56.74% |
images/ico_link.png | 1.00KB | 0.21KB | ▼ 79.07% |
images/wpshop_bnr_plugins.png | 13.29KB | 5.68KB | ▼ 57.23% |