68% justrateit

Code Review | JustRateIt

WordPress plugin JustRateIt scored 68% from 54 tests.

About plugin

  • Plugin page: justrateit
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Jun 5, 2013
  • Latest release: Jun 5, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: sebastianost (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 771 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.07 ▼0.09
Dashboard /wp-admin3.32 ▲0.0244.76 ▼4.22
Posts /wp-admin/edit.php3.37 ▲0.0245.07 ▲4.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.00 ▼9.20
Media Library /wp-admin/upload.php3.25 ▲0.0231.67 ▼2.42
JustRateIt /wp-admin/options-general.php?page=justrateit_plugin_option_menu_slug3.2529.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲15413.61 ▼0.776.18 ▲4.3941.67 ▼0.32
Dashboard /wp-admin2,207 ▲155.77 ▲0.6997.79 ▼13.3141.93 ▲2.39
Posts /wp-admin/edit.php2,090 ▲12.02 ▼0.0436.23 ▲2.1731.72 ▼1.30
Add New Post /wp-admin/post-new.php1,517 ▼1817.84 ▼5.42672.48 ▲57.4356.87 ▲8.53
Media Library /wp-admin/upload.php1,392 ▲44.32 ▲0.1496.64 ▲0.6744.63 ▲1.12
JustRateIt /wp-admin/options-general.php?page=justrateit_plugin_option_menu_slug6921.536.6217.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP25694211
JavaScript111255
CSS1003

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 code0.30
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods213.33%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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