90% cbxmcratingreview

Code Review | CBX Multi Criteria Rating & Review System

WordPress plugin CBX Multi Criteria Rating & Review System scored90%from 54 tests.

About plugin

  • Plugin page: cbxmcratingreview
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.4
  • WordPress version: 6.3.1
  • First release: Mar 14, 2019
  • Latest release: Nov 4, 2019
  • Number of updates: 12
  • Update frequency: every 35.8 days
  • Top authors: manchumahara (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,233 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by CBX Multi Criteria Rating & Review System
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.55 ▼0.46
Dashboard /wp-admin3.31 ▼0.0447.95 ▼20.60
Posts /wp-admin/edit.php3.36 ▲0.0048.62 ▼4.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.72 ▼18.29
Media Library /wp-admin/upload.php3.23 ▲0.0040.41 ▲2.31

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 129 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for CBX Multi Criteria Rating & Review System
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.051.69 ▼0.0844.73 ▲1.41
Dashboard /wp-admin2,195 ▲275.61 ▲0.0286.28 ▼4.2241.61 ▼0.84
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0335.82 ▼5.8835.74 ▼2.12
Add New Post /wp-admin/post-new.php1,526 ▼023.55 ▲0.42671.60 ▲53.3363.85 ▲8.01
Media Library /wp-admin/upload.php1,394 ▼64.19 ▼0.0399.41 ▼8.4245.18 ▼0.30

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

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 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention: Please take inspiration from this readme.txt

cbxmcratingreview/cbxmcratingreview.php Passed 13 tests

The main PHP script in "CBX Multi Criteria Rating & Review System" version 1.0.3 is automatically included on every request by WordPress
51 characters long description:
Multi Criteria Rating & Review System for WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected19,813 lines of code in 76 files:
LanguageFilesBlank linesComment linesLines of code
PHP493,5604,35010,074
JavaScript149296515,149
CSS123531334,575
SVG10015

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity63.35
▷ Minimum class complexity1.00
▷ Maximum class complexity391.00
Average method complexity5.30
▷ Minimum method complexity1.00
▷ Maximum method complexity72.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
Methods329
▷ Static methods11033.43%
▷ Public methods30291.79%
▷ Protected methods00.00%
▷ Private methods278.21%
Functions39
▷ Named functions3897.44%
▷ Anonymous functions12.56%
Constants19
▷ Global constants1052.63%
▷ Class constants947.37%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
37 compressed PNG files occupy 0.21MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/chosen-sprite.png0.53KB0.88KB0.00%
assets/images/icon_upload.png0.32KB0.32KB0.00%
assets/css/ui-lightness/images/ui-icons_ef8c08_256x240.png4.44KB4.17KB▼ 6.02%
assets/images/icon_delete_red_32.png0.50KB0.50KB▼ 0.58%
assets/images/icon_upload_32.png0.87KB0.88KB0.00%