Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/website-rating/website-rating.php+20
Methods with the same name as their class will not be constructors in a future version of PHP; buffercode_website_rating_info has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼47.84ms] Passed 4 tests
An overview of server-side resources used by Website Rating
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 10.30 ▼28.14 |
Dashboard /wp-admin | 2.29 ▼1.01 | 19.48 ▼31.00 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 9.55 ▼39.78 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 10.84 ▼92.45 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 10.66 ▼25.40 |
Website Rating /wp-admin/options-general.php?page=website-rating/website-rating.php | 2.29 | 10.78 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_buffercode_website_rating_info |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Website Rating
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲14 | 14.35 ▲0.17 | 1.88 ▼0.04 | 42.74 ▲1.38 |
Dashboard /wp-admin | 2,201 ▲24 | 5.64 ▼0.03 | 85.17 ▲1.33 | 42.64 ▲0.98 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 1.98 ▲0.04 | 33.84 ▼3.35 | 35.17 ▼4.77 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.46 ▲0.28 | 661.03 ▼1.36 | 52.28 ▼3.90 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.11 ▼0.08 | 115.27 ▲16.02 | 48.27 ▼0.13 |
Website Rating /wp-admin/options-general.php?page=website-rating/website-rating.php | 907 | 1.99 | 31.68 | 41.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in buffercode_website_rating_info is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_buffercode_website_rating_info
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 50% 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)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=website-rating/website-rating.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in buffercode_website_rating_info is deprecated since version 4.3.0! Use __construct() instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/website-rating/website-rating.php:14
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Rating output Screen), #2 (Before Rating), #3 (Admin Panel Rating)
website-rating/website-rating.php Passed 13 tests
The entry point to "Website Rating" version 1.3 is a PHP file that has certain tags in its header comment area
108 characters long description:
Easy way to display the number of post in that particular category by selecting from admin dashboard widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected244 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 45 | 11 | 223 |
CSS | 1 | 4 | 0 | 21 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 3.77KB | 2.38KB | ▼ 36.82% |
screenshot-1.png | 7.60KB | 2.87KB | ▼ 62.25% |
images/donate.png | 3.74KB | 1.75KB | ▼ 53.38% |
screenshot-3.png | 23.45KB | 8.48KB | ▼ 63.84% |