Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.43ms] Passed 4 tests
An overview of server-side resources used by Rate my Post - WP Rating System
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.57 ▼4.99 |
Dashboard /wp-admin | 3.38 ▲0.08 | 44.85 ▼8.23 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 47.08 ▲6.37 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 89.32 ▼5.52 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 33.61 ▲1.01 |
Settings /wp-admin/admin.php?page=rate-my-post | 3.53 | 35.93 |
Analytics /wp-admin/admin.php?page=rate-my-post-analytics | 3.34 | 28.86 |
Stats /wp-admin/admin.php?page=rate-my-post-stats | 3.32 | 28.18 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 60 new files
Database: 1 new table, 12 new options
New tables |
---|
wp_rmp_analytics |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
rmp_security |
rmp_version |
widget_rate-my-post-top-rated-widget |
rmp_options |
rmp_admin_notices |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Rate my Post - WP Rating System: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲98 | 13.62 ▼0.68 | 3.57 ▲1.69 | 38.66 ▼4.96 |
Dashboard /wp-admin | 2,238 ▲50 | 5.24 ▲0.36 | 106.54 ▼8.05 | 40.37 ▼3.07 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.34 ▲0.16 | 40.09 ▲0.15 | 38.07 ▲1.33 |
Add New Post /wp-admin/post-new.php | 6,291 ▲4,754 | 26.29 ▲8.33 | 915.89 ▲305.64 | 72.17 ▲16.17 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.55 ▲0.36 | 107.08 ▲7.41 | 47.06 ▲4.04 |
Settings /wp-admin/admin.php?page=rate-my-post | 2,454 | 2.10 | 36.97 | 43.39 |
Analytics /wp-admin/admin.php?page=rate-my-post-analytics | 993 | 2.73 | 44.06 | 31.35 |
Stats /wp-admin/admin.php?page=rate-my-post-stats | 943 | 2.65 | 40.22 | 30.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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 1 table in the database
- wp_rmp_analytics
- Zombie WordPress options detected upon uninstall: 12 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- rmp_security
- rmp_admin_notices
- rmp_version
- theysaidso_admin_options
- rmp_options
- rmp_customize_strings
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 14× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/rate-my-post/public/templates/amp-css.php
- > /wp-content/plugins/rate-my-post/public/templates/internal-css.php
- > /wp-content/plugins/rate-my-post/admin/templates/menu-options.php
- > /wp-content/plugins/rate-my-post/admin/templates/menu-alerts.php
- > /wp-content/plugins/rate-my-post/admin/templates/stats.php
- > /wp-content/plugins/rate-my-post/admin/templates/analytics.php
- > /wp-content/plugins/rate-my-post/admin/templates/menu-customize.php
- > /wp-content/plugins/rate-my-post/admin/templates/menu-security.php
- > /wp-content/plugins/rate-my-post/admin/templates/meta-box.php
- > /wp-content/plugins/rate-my-post/admin/templates/menu-migration.php
- 55× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/rate-my-post/public/templates/results-widget.php on line 15
- > PHP Notice
Undefined variable: customization_options in wp-content/plugins/rate-my-post/public/templates/internal-css.php on line 108
- > PHP Notice
Undefined variable: customization_options in wp-content/plugins/rate-my-post/public/templates/internal-css.php on line 102
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/rate-my-post/public/templates/internal-css.php on line 102
- > PHP Notice
Undefined variable: customization_options in wp-content/plugins/rate-my-post/public/templates/internal-css.php on line 62
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rate-my-post/widgets/rate-my-post-top-rated-widget.php:13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/rate-my-post/public/templates/internal-css.php on line 84
- > PHP Notice
Undefined variable: customization_options in wp-content/plugins/rate-my-post/public/templates/internal-css.php on line 49
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/rate-my-post/public/templates/internal-css.php on line 139
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/rate-my-post/public/templates/amp-rating-widget.php on line 16
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
rate-my-post/rate-my-post.php Passed 13 tests
This is the main PHP file of "Rate my Post - WP Rating System" version 3.4.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
72 characters long description:
Allows you to easily add rating functionality to your WordPress website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected5,246 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 848 | 949 | 5,214 |
SVG | 1 | 0 | 0 | 23 |
JavaScript | 2 | 0 | 14 | 5 |
CSS | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 36.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 225.00 |
Average method complexity | 4.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 141 | |
▷ Static methods | 21 | 14.89% |
▷ Public methods | 78 | 55.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 63 | 44.68% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
admin/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
admin/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
admin/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
admin/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |