89% cbxscratingreview

Code Review | CBX 5 Star Rating & Review

WordPress plugin CBX 5 Star Rating & Review scored89%from 54 tests.

About plugin

  • Plugin page: cbxscratingreview
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.8.1
  • WordPress version: 6.3.1
  • First release: Feb 21, 2019
  • Latest release: Sep 21, 2021
  • Number of updates: 28
  • Update frequency: every 33.7 days
  • Top authors: manchumahara (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,292 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.86ms] Passed 4 tests

Server-side resources used by CBX 5 Star Rating & Review
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.58 ▼2.20
Dashboard /wp-admin3.31 ▼0.0451.49 ▼13.99
Posts /wp-admin/edit.php3.36 ▲0.0049.29 ▲3.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.13 ▼14.42
Media Library /wp-admin/upload.php3.23 ▲0.0039.08 ▲3.17

Server storage [IO: ▲1.99MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 233 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

CBX 5 Star Rating & Review: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.29 ▲0.001.81 ▲0.1844.95 ▲3.82
Dashboard /wp-admin2,195 ▲185.55 ▼0.1089.36 ▲1.6542.07 ▲1.19
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0035.50 ▼4.9036.00 ▲0.23
Add New Post /wp-admin/post-new.php1,530 ▲223.25 ▲0.18668.56 ▲20.8559.39 ▼4.45
Media Library /wp-admin/upload.php1,400 ▼04.17 ▲0.0097.75 ▼6.2249.16 ▲3.87

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

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)
No browser issues were found

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
These attributes need to be fixed: You can look at the official readme.txt

cbxscratingreview/cbxscratingreview.php Passed 13 tests

This is the main PHP file of "CBX 5 Star Rating & Review" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
58 characters long description:
Quick 5 star single Criteria Rating & Review for WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected29,683 lines of code in 170 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript763,4171,41014,235
PHP632,9624,2439,452
CSS131861083,884
Sass7370241,953
SVG1106159

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity27.31
▷ Minimum class complexity1.00
▷ Maximum class complexity255.00
Average method complexity3.46
▷ Minimum method complexity1.00
▷ Maximum method complexity60.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes36
▷ Abstract classes00.00%
▷ Concrete classes36100.00%
▷ Final classes00.00%
Methods376
▷ Static methods9124.20%
▷ Public methods32385.90%
▷ Protected methods266.91%
▷ Private methods277.18%
Functions38
▷ Named functions3797.37%
▷ Anonymous functions12.63%
Constants14
▷ Global constants535.71%
▷ Class constants964.29%
▷ Public constants9100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
40 PNG files occupy 0.22MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon_delete_red_16.png0.33KB0.33KB0.00%
assets/images/upload_ph.png0.30KB0.28KB▼ 6.47%
assets/images/widget_icons/icon_common.png0.55KB0.78KB0.00%
assets/vendors/jquery-ui/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png0.30KB0.15KB▼ 49.68%
(invalid) assets/images/thumb-down-filled.png0.75KB0.00KB▼ 100.00%