Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.78ms] Passed 4 tests
Server-side resources used by Plugin Name: GMO Font Agent
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.03 ▼4.50 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.03 ▼11.27 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.83 ▲1.23 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 87.98 ▲3.42 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.37 ▲4.22 |
GMO Font Agent /wp-admin/options-general.php?page=gmofontagent | 3.27 | 31.40 |
Server storage [IO: ▲2.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Plugin Name: GMO Font Agent: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲82 | 13.13 ▼1.62 | 1.75 ▼0.26 | 41.32 ▼6.08 |
Dashboard /wp-admin | 2,219 ▲31 | 4.91 ▲0.02 | 107.67 ▼8.30 | 42.02 ▼3.94 |
Posts /wp-admin/edit.php | 2,105 ▲19 | 2.02 ▲0.02 | 39.81 ▲1.85 | 35.16 ▲2.03 |
Add New Post /wp-admin/post-new.php | 1,549 ▲16 | 18.36 ▼4.66 | 610.31 ▼12.77 | 44.71 ▼10.09 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.21 ▲0.01 | 95.76 ▼19.02 | 42.19 ▼5.48 |
GMO Font Agent /wp-admin/options-general.php?page=gmofontagent | 1,750 | 2.41 | 43.06 | 69.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant GMOFONTAGENT_URL - assumed 'GMOFONTAGENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gmo-font-agent/tinymce/3.5.9/tinymce-iconfonts-popup.html.php on line 6
- > PHP Warning
Use of undefined constant GMOFONTAGENT_URL - assumed 'GMOFONTAGENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gmo-font-agent/tinymce/4.0.20/tinymce-iconfonts-popup.html.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/gmo-font-agent/gmo-font-agent.php:33
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/gmo-font-agent/tinymce/4.0.20/tinymce-iconfonts-popup.html.php:8
- > PHP Warning
Use of undefined constant GMOFONTAGENT_URL - assumed 'GMOFONTAGENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gmo-font-agent/tinymce/3.5.9/tinymce-iconfonts-popup.html.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/gmo-font-agent/includes/admin.php:1
- > PHP Warning
Use of undefined constant GMOFONTAGENT_URL - assumed 'GMOFONTAGENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gmo-font-agent/tinymce/4.0.20/tinymce-iconfonts-popup.html.php on line 6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/gmo-font-agent/tinymce/3.5.9/tinymce-iconfonts-popup.html.php:8
- > PHP Warning
Use of undefined constant GMOFONTAGENT_URL - assumed 'GMOFONTAGENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gmo-font-agent/tinymce/4.0.20/tinymce-iconfonts-popup.html.php on line 4
- > PHP Warning
Use of undefined constant GMOFONTAGENT_URL - assumed 'GMOFONTAGENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gmo-font-agent/tinymce/3.5.9/tinymce-iconfonts-popup.html.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== Plugin Name: GMO Font Agent===
)
gmo-font-agent/gmo-font-agent.php 85% from 13 tests
"Plugin Name: GMO Font Agent" version 1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 220 characters long)
- 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected20,538 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 10,737 |
HTML | 1 | 2 | 2 | 5,898 |
CSS | 7 | 39 | 21 | 1,743 |
PHP | 6 | 96 | 34 | 1,096 |
SVG | 2 | 0 | 0 | 596 |
JavaScript | 6 | 34 | 29 | 255 |
Sass | 2 | 12 | 0 | 111 |
XML | 14 | 0 | 0 | 91 |
Ruby | 1 | 6 | 12 | 9 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.05 |
▷ 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 | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 86.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 13.64% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.60MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ico_link.png | 1.00KB | 0.21KB | ▼ 79.07% |
images/wpshop_bnr_themes.png | 13.39KB | 5.79KB | ▼ 56.74% |
images/wpcloud_logo.png | 4.90KB | 2.99KB | ▼ 39.04% |
images/wpshop_logo.png | 7.22KB | 5.91KB | ▼ 18.12% |
images/bnr_plugins.png | 3.48KB | 2.30KB | ▼ 33.86% |