52% rating-review-matrix

Code Review | Multi Rating & Review Matrix System

WordPress plugin Multi Rating & Review Matrix System scored52%from 54 tests.

About plugin

  • Plugin page: rating-review-matrix
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: May 20, 2014
  • Latest release: May 26, 2014
  • Number of updates: 34
  • Update frequency: every 0.2 days
  • Top authors: joshuadamour (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,387 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼1.05MB] [CPU: ▼41.25ms] Passed 4 tests

An overview of server-side resources used by Multi Rating & Review Matrix System
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.93 ▼0.5320.29 ▼17.91
Dashboard /wp-admin2.97 ▼0.3418.49 ▼31.39
Posts /wp-admin/edit.php2.97 ▼0.3919.15 ▼34.70
Add New Post /wp-admin/post-new.php2.97 ▼2.9219.77 ▼78.32
Media Library /wp-admin/upload.php2.97 ▼0.2619.21 ▼20.58
Rating Matrices /wp-admin/admin.php?page=rmatrix-options2.9716.63
RMatrix Main /wp-admin/admin.php?page=review-matrix2.9716.79

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 60 new files
Database: 2 new tables, 8 new options
New tables
wp_rmatrix_fields
wp_rmatrix_ratings
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
rmatrix_version
db_upgraded
rmatrix_build

Browser metrics Passed 4 tests

An overview of browser requirements for Multi Rating & Review Matrix System
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲8514.29 ▲0.102.93 ▲1.1642.71 ▼1.58
Dashboard /wp-admin2,206 ▲265.56 ▼0.1584.17 ▼6.8480.47 ▲40.71
Posts /wp-admin/edit.php2,132 ▲291.95 ▼0.0738.07 ▲2.6834.10 ▼3.22
Add New Post /wp-admin/post-new.php6,424 ▲4,87522.55 ▲4.34940.15 ▲299.8364.72 ▼9.36
Media Library /wp-admin/upload.php1,420 ▲204.17 ▼0.05101.11 ▲0.9266.27 ▲19.76
Rating Matrices /wp-admin/admin.php?page=rmatrix-options9291.7028.7552.47
RMatrix Main /wp-admin/admin.php?page=review-matrix1,2712.0624.8346.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/rating-review-matrix/loader.php+37
    Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP)
  • Zombie tables were found after uninstall: 2 tables
    • wp_rmatrix_fields
    • wp_rmatrix_ratings
  • The uninstall procedure has failed, leaving 8 options in the database
    • rmatrix_version
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • rmatrix_build
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=review-matrix
    • > Warning in wp-content/plugins/rating-review-matrix/loader.php+38
    Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=review-matrix
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=review-matrix
    • > User deprecated in wp-includes/functions.php+5453
    Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant RMATRIX_PLUGIN_DIR - assumed 'RMATRIX_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/rating-review-matrix/admin-framework/index.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rating-review-matrix/loader-admin.php:505
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rating-review-matrix/admin-framework/index.php:11
    • > PHP Warning
      Use of undefined constant RMATRIX_PLUGIN_URL - assumed 'RMATRIX_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/rating-review-matrix/admin-framework/index.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rating-review-matrix/post_types.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=rmatrix-options
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=rmatrix-options:433:15)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=review-matrix
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/rating-review-matrix/admin-framework/js/rmatrix.js:2:22)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=review-matrix
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
    • > GET request to /wp-admin/admin.php?page=review-matrix
    • > Network (severe)
    wp-content/plugins/rating-review-matrix/admin-framework/images/sprite.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === rating-review-matrix === )
  • Screenshots: These screenshots require images: #1 (In the Wordpress admin area, create a matrix or delete some), #2 (Once the matrix is created, you can select which one to associate with the post. Be careful not to change matrices as it will mess the ratings/votes up), #3 (Display the matrix on the frontend of the post you selected it for. Simple!), #4 (Matrix can be out of 5 OR out of 10), #5 (Fully Licalizable. French .mo file is included automatically)
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
The official readme.txt might help

rating-review-matrix/loader.php 92% from 13 tests

Analyzing the main PHP file in "Multi Rating & Review Matrix System" version 1.0.5
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("rating-review-matrix.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin6,939 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
CSS984964,768
PHP61971571,323
JavaScript8111175589
PO File1108228259

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity2.00
▷ Minimum method complexity2.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions47
▷ Named functions47100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
26 PNG files occupy 0.47MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png42.18KB15.73KB▼ 62.70%
images/star_off.png2.29KB1.75KB▼ 23.89%
images/blue.png2.69KB2.15KB▼ 19.85%
images/rmatrix-menu-icon.png1.36KB1.32KB▼ 2.59%
images/icons.png5.46KB2.29KB▼ 58.07%