Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.61MB] [CPU: ▼21.62ms] Passed 4 tests
A check of server-side resources used by RC Post Rating
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 35.11 ▼10.79 |
Dashboard /wp-admin | 3.17 ▼0.14 | 23.58 ▼23.79 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 48.68 ▲3.81 |
Add New Post /wp-admin/post-new.php | 3.31 ▼2.58 | 34.92 ▼51.40 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 35.74 ▼0.51 |
RC Post Rating /wp-admin/options-general.php?page=rcpr_post_rating_settings_screen | 3.30 | 30.81 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by RC Post Rating
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲157 | 13.90 ▼0.67 | 7.47 ▲5.09 | 39.70 ▼5.28 |
Dashboard /wp-admin | 2,214 ▲26 | 5.86 ▲0.02 | 110.68 ▼6.15 | 42.83 ▼4.14 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.00 ▲0.02 | 40.61 ▲6.59 | 36.02 ▲0.39 |
Add New Post /wp-admin/post-new.php | 6,590 ▲5,054 | 29.28 ▲6.28 | 901.13 ▲251.97 | 39.68 ▼8.35 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.27 ▲0.11 | 92.76 ▼9.92 | 40.06 ▼5.26 |
RC Post Rating /wp-admin/options-general.php?page=rcpr_post_rating_settings_screen | 904 | 2.03 | 25.05 | 31.71 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 9 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=rcpr_post_rating_settings_screen
- > Notice in wp-content/plugins/rc-post-rating/includes/settings.php+221
Trying to access array offset on value of type bool
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
Please fix the following items
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rc-post-rating/includes/shortcode.php:142
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rc-post-rating/includes/stats.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/rc-post-rating/includes/columns.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rc-post-rating/includes/block.php:84
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rc-post-rating/includes/settings.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rc-post-rating/includes/rest.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rc-post-rating/includes/settings.php:12
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: rate post, post rating, user-feedback, widgets, rating system...
rc-post-rating/rc-post-rating.php Passed 13 tests
The entry point to "RC Post Rating" version 1.0.9 is a PHP file that has certain tags in its header comment area
105 characters long description:
This plugin adds the ability for users to provide feedback on pages / posts via up / down rating buttons.
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
Everything looks great! No dangerous files found in this plugin632 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 181 | 98 | 509 |
JavaScript | 3 | 33 | 21 | 101 |
CSS | 1 | 3 | 3 | 22 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 28 | 87.50% |
▷ Anonymous functions | 4 | 12.50% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin