Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/original-post-ranking-widget/original-post-ranking-widget.php+228
Methods with the same name as their class will not be constructors in a future version of PHP; original_post_ranking_widget_cls has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼51.22ms] Passed 4 tests
A check of server-side resources used by Original Post Ranking Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 7.69 ▼30.27 |
Dashboard /wp-admin | 2.30 ▼1.04 | 10.72 ▼50.73 |
Posts /wp-admin/edit.php | 2.30 ▼1.05 | 12.93 ▼33.39 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.58 | 10.57 ▼90.50 |
Media Library /wp-admin/upload.php | 2.30 ▼0.92 | 9.90 ▼27.57 |
Original Post Ranking Widget /wp-admin/options-general.php?page=original_post_ranking_widget | 2.31 | 11.02 |
Server storage [IO: ▲0.12MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_original_post_ranking_cls |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Original Post Ranking Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.24 ▼0.32 | 1.52 ▼0.10 | 40.52 ▼4.31 |
Dashboard /wp-admin | 2,196 ▲16 | 5.54 ▼0.07 | 89.27 ▼0.24 | 37.81 ▼4.95 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▼0.00 | 38.73 ▲2.09 | 36.15 ▼2.58 |
Add New Post /wp-admin/post-new.php | 1,534 ▼145 | 22.86 ▲0.70 | 637.03 ▼19.59 | 52.55 ▲3.68 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▼0.04 | 95.56 ▼2.19 | 41.20 ▼2.97 |
Original Post Ranking Widget /wp-admin/options-general.php?page=original_post_ranking_widget | 998 | 2.07 | 25.48 | 29.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in original_post_ranking_widget_cls is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_original_post_ranking_cls
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=original_post_ranking_widget
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in original_post_ranking_widget_cls is deprecated since version 4.3.0! Use __construct() instead.
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/original-post-ranking-widget/original-post-ranking-widget.php:29
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=original_post_ranking_widget
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/original-post-ranking-widget/original-post-ranking-widget.js?ver=1.0.1:16:85)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=original_post_ranking_widget
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 93% 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:
- Screenshots: These screenshots do not have images: #1 (Interface in setting), #2 (Widget setting), #3 (Screen sitebar)
original-post-ranking-widget/original-post-ranking-widget.php 92% from 13 tests
"Original Post Ranking Widget" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin394 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 99 | 40 | 321 |
JavaScript | 1 | 18 | 5 | 40 |
CSS | 1 | 3 | 0 | 33 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 49.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 13.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
3 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 22.74KB | 9.66KB | ▼ 57.52% |
screenshot-2.png | 43.65KB | 17.88KB | ▼ 59.05% |
screenshot-1.png | 33.58KB | 16.19KB | ▼ 51.77% |