Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼136.80ms] Passed 4 tests
An overview of server-side resources used by Rating Plus
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 37.22 ▲18.06 |
Dashboard /wp-admin | 3.12 ▲0.06 | 49.15 ▲5.63 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 51.69 ▲5.06 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 96.33 ▼560.58 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 34.69 ▲2.68 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_ratingpluswidget |
Browser metrics Passed 4 tests
A check of browser resources used by Rating Plus
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,691 ▲95 | 16.34 ▲0.67 | 10.62 ▲3.08 | 50.11 ▲3.23 |
Dashboard /wp-admin | 2,980 ▲43 | 6.26 ▲0.26 | 142.73 ▼13.01 | 115.43 ▼4.80 |
Posts /wp-admin/edit.php | 2,749 ▲10 | 2.72 ▲0.03 | 69.26 ▲0.95 | 91.14 ▼3.65 |
Add New Post /wp-admin/post-new.php | 1,626 ▼57 | 22.04 ▲3.16 | 274.22 ▼102.87 | 109.57 ▼1.79 |
Media Library /wp-admin/upload.php | 1,746 ▼61 | 5.12 ▲0.09 | 164.61 ▲3.02 | 122.11 ▲5.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_ratingpluswidget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Please 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 add_action() in wp-content/plugins/rating-plus/rating-plus.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: You are using too many tags: 73 tag instead of maximum 10
rating-plus/rating-plus.php Passed 13 tests
This is the main PHP file of "Rating Plus" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
95 characters long description:
A simple and clean rating widget plugin allowing to add a sexy rate button to the widgets area.
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 plugin1,117 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 124 | 19 | 579 |
PHP | 2 | 30 | 10 | 323 |
JavaScript | 2 | 17 | 21 | 130 |
PO File | 2 | 19 | 23 | 70 |
Markdown | 1 | 11 | 0 | 15 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 4 | |
▷ Named functions | 4 | 100.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 Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/select2/select2.png | 1.67KB | 0.99KB | ▼ 40.78% |
assets/img/icon-256x256.png | 9.53KB | 5.15KB | ▼ 45.98% |
assets/img/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
assets/img/icons.png | 10.60KB | 9.59KB | ▼ 9.50% |