Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.98ms] Passed 4 tests
Server-side resources used by JustRateIt
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.07 ▼0.09 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.76 ▼4.22 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.07 ▲4.44 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 80.00 ▼9.20 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 31.67 ▼2.42 |
JustRateIt /wp-admin/options-general.php?page=justrateit_plugin_option_menu_slug | 3.25 | 29.86 |
Server storage [IO: ▲0.01MB] [DB: ▲0.08MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_justrateit |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for JustRateIt
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲154 | 13.61 ▼0.77 | 6.18 ▲4.39 | 41.67 ▼0.32 |
Dashboard /wp-admin | 2,207 ▲15 | 5.77 ▲0.69 | 97.79 ▼13.31 | 41.93 ▲2.39 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.02 ▼0.04 | 36.23 ▲2.17 | 31.72 ▼1.30 |
Add New Post /wp-admin/post-new.php | 1,517 ▼18 | 17.84 ▼5.42 | 672.48 ▲57.43 | 56.87 ▲8.53 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.32 ▲0.14 | 96.64 ▲0.67 | 44.63 ▲1.12 |
JustRateIt /wp-admin/options-general.php?page=justrateit_plugin_option_menu_slug | 692 | 1.53 | 6.62 | 17.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_justrateit
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=justrateit_plugin_option_menu_slug
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=justrateit_plugin_option_menu_slug
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=justrateit_plugin_option_menu_slug
- > Error in wp-admin/includes/template.php+1801
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/justrateit/justrateit_options.php on line 8 and exactly 2 expected in wp-admin/includes/template.php:1801
Stack trace:
#0 wp-content/plugins/justrateit/justrateit_options.php(8): do_settings_fields()
#1 wp-content/plugins/justrateit/justrateit.php(105): include('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(310): justrateit->render_settings()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#7 {main}
thrown
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/justrateit/justrateit_options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/justrateit/justrateit.php:17
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: rate, vote
justrateit/justrateit.php Passed 13 tests
This is the main PHP file of "JustRateIt" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
60 characters long description:
A nice and super simple way of adding ratings in your posts.
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
No dangerous file extensions were detected269 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 56 | 94 | 211 |
JavaScript | 1 | 11 | 2 | 55 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 15 | |
▷ Static methods | 2 | 13.33% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected