Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.01MB] [CPU: ▲2.12ms] Passed 4 tests
An overview of server-side resources used by WP One Metric
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.44 ▲0.98 | 42.67 ▲0.27 |
Dashboard /wp-admin | 4.33 ▲1.02 | 55.22 ▲3.64 |
Posts /wp-admin/edit.php | 4.41 ▲1.05 | 54.00 ▲5.82 |
Add New Post /wp-admin/post-new.php | 6.90 ▲1.02 | 90.64 ▼1.25 |
Media Library /wp-admin/upload.php | 4.23 ▲1.00 | 47.07 ▲6.67 |
Analytics設定 /wp-admin/options-general.php?page=gapiwp-analytics | 4.20 | 39.09 |
WP One Metric /wp-admin/index.php?page=wpomc-dash | 4.17 | 39.26 |
Server storage [IO: ▲6.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 209 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WP One Metric: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.33 ▼0.96 | 4.40 ▲2.53 | 37.35 ▼11.15 |
Dashboard /wp-admin | 2,228 ▲39 | 5.05 ▲0.10 | 105.69 ▼3.37 | 46.79 ▲5.28 |
Posts /wp-admin/edit.php | 2,144 ▲55 | 2.61 ▲0.60 | 38.49 ▼1.61 | 41.01 ▲5.69 |
Add New Post /wp-admin/post-new.php | 1,537 ▼5 | 23.17 ▲5.09 | 682.71 ▲39.14 | 66.27 ▲16.55 |
Media Library /wp-admin/upload.php | 1,413 ▲22 | 4.47 ▲0.24 | 111.31 ▼2.72 | 51.89 ▲4.78 |
Analytics設定 /wp-admin/options-general.php?page=gapiwp-analytics | 871 | 1.85 | 27.47 | 69.34 |
WP One Metric /wp-admin/index.php?page=wpomc-dash | 865 | 2.48 | 51.72 | 45.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/index.php?page=wpomc-dash
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/index.php?page=wpomc-dash
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 0% 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
- 9× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-one-metric/vendor/google/apiclient/examples/service-account.php
- > /wp-content/plugins/wp-one-metric/vendor/google/apiclient/examples/fileupload.php
- > /wp-content/plugins/wp-one-metric/vendor/google/apiclient/examples/user-example.php
- > /wp-content/plugins/wp-one-metric/vendor/google/apiclient/examples/simple-query.php
- > /wp-content/plugins/wp-one-metric/vendor/google/apiclient/examples/index.php
- > /wp-content/plugins/wp-one-metric/vendor/google/apiclient/examples/multi-api.php
- > /wp-content/plugins/wp-one-metric/vendor/google/apiclient/examples/batch.php
- > /wp-content/plugins/wp-one-metric/vendor/google/apiclient/examples/simplefileupload.php
- > /wp-content/plugins/wp-one-metric/vendor/google/apiclient/examples/idtoken.php
- 113× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'BaseTest' not found in wp-content/plugins/wp-one-metric/vendor/google/apiclient/tests/general/IoTest.php:21
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/wp-one-metric/vendor/google/apiclient/src/Google/Service/Taskqueue.php:31
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/wp-one-metric/vendor/google/apiclient/src/Google/Service/Customsearch.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-one-metric/modules/main.php:289
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/wp-one-metric/vendor/google/apiclient/tests/general/ResourceTest.php:21
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/wp-one-metric/vendor/google/apiclient/src/Google/Service/SQLAdmin.php:31
- > PHP Fatal error
Uncaught Error: Class 'Hametuha\\GapiWP\\Service\\Prototype' not found in wp-content/plugins/wp-one-metric/vendor/hametuha/gapiwp/src/Hametuha/GapiWP/Service/Analytics.php:17
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/wp-one-metric/vendor/google/apiclient/src/Google/Service/AdSense.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/wp-one-metric/vendor/google/apiclient/src/Google/Service/Pagespeedonline.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/wp-one-metric/vendor/google/apiclient/src/Google/Service/Games.php:31
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=gapiwp-analytics
- > Javascript (severe) in unknown
http://cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.min.js?ver=1.0 5:1339 Uncaught Error: Graph container element not found
Optimizations
Plugin configuration 93% 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:
- Screenshots: Please add an image for screenshot #1 (Vertical axis: evaluation indicator)
wp-one-metric/wp-one-metric.php 92% from 13 tests
The primary PHP file in "WP One Metric" version 1.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 180 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin174,465 lines of code in 194 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 174 | 11,357 | 33,188 | 173,809 |
JSON | 7 | 0 | 0 | 169 |
Markdown | 4 | 74 | 0 | 142 |
XML | 2 | 28 | 41 | 122 |
CSS | 2 | 16 | 15 | 84 |
PO File | 1 | 16 | 23 | 49 |
Sass | 1 | 1 | 0 | 39 |
JavaScript | 1 | 6 | 4 | 23 |
YAML | 1 | 6 | 2 | 22 |
INI | 1 | 0 | 1 | 6 |
PHP code Passed 2 tests
Analyzing 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.02 |
Average class complexity | 1.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 1.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 3,052 | |
▷ Abstract classes | 7 | 0.23% |
▷ Concrete classes | 3,045 | 99.77% |
▷ Final classes | 0 | 0.00% |
Methods | 23,893 | |
▷ Static methods | 19 | 0.08% |
▷ Public methods | 23,793 | 99.58% |
▷ Protected methods | 34 | 0.14% |
▷ Private methods | 66 | 0.28% |
Functions | 17 | |
▷ Named functions | 11 | 64.71% |
▷ Anonymous functions | 6 | 35.29% |
Constants | 251 | |
▷ Global constants | 2 | 0.80% |
▷ Class constants | 249 | 99.20% |
▷ Public constants | 249 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 164.23KB | 52.22KB | ▼ 68.21% |