62% codeies-elite-user-ratings

Code Review | Codeies - Elite user Ratings

WordPress plugin Codeies - Elite user Ratings scored62%from 54 tests.

About plugin

  • Plugin page: codeies-elite-use...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.3-6.0.3
  • WordPress version: 6.3.1
  • First release: Nov 6, 2022
  • Latest release: Nov 7, 2022
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: codeies (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /144 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
Installer ran successfully

Server metrics [RAM: ▲1.59MB] [CPU: ▲3.76ms] Passed 4 tests

An overview of server-side resources used by Codeies - Elite user Ratings
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.04 ▲1.5852.65 ▲6.57
Dashboard /wp-admin4.95 ▲1.6465.41 ▲2.64
Posts /wp-admin/edit.php5.00 ▲1.6465.82 ▲13.26
Add New Post /wp-admin/post-new.php7.48 ▲1.59103.31 ▼4.56
Media Library /wp-admin/upload.php4.78 ▲1.5547.11 ▲10.37

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 591 new files
Database: 1 new table, 6 new options
New tables
wp_codeies_wmr
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Codeies - Elite user Ratings
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,188 ▲41719.10 ▲4.466.03 ▲4.0739.39 ▼4.63
Dashboard /wp-admin2,471 ▲2809.24 ▲3.34188.37 ▲83.8242.40 ▲0.43
Posts /wp-admin/edit.php2,392 ▲3036.28 ▲4.2786.55 ▲47.9135.62 ▲1.16
Add New Post /wp-admin/post-new.php1,599 ▲7120.18 ▲2.09742.56 ▲97.3638.85 ▼20.29
Media Library /wp-admin/upload.php1,525 ▲1376.58 ▲2.34113.51 ▼1.7745.98 ▼2.15
Member ratings /wp-admin/crb_carbon_fields_container_member_ratings.php260.440.1314.52

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_codeies_wmr
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% 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
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/codeies-elite-user-ratings/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
    • > /wp-content/plugins/codeies-elite-user-ratings/public/partials/wordpress-member-ratings-public-display.php
    • > /wp-content/plugins/codeies-elite-user-ratings/admin/partials/wordpress-member-ratings-display.php
  • 214× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/codeies-elite-user-ratings/vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/codeies-elite-user-ratings/vendor/composer/installers/src/Composer/Installers/OxidInstaller.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/codeies-elite-user-ratings/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/codeies-elite-user-ratings/vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/codeies-elite-user-ratings/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Ancestor_ID_Condition.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/codeies-elite-user-ratings/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/codeies-elite-user-ratings/vendor/htmlburger/carbon-fields/core/Container/Condition/User_ID_Condition.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/codeies-elite-user-ratings/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/codeies-elite-user-ratings/vendor/composer/installers/src/Composer/Installers/MayaInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/codeies-elite-user-ratings/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Custom_Comparer.php:7

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/crb_carbon_fields_container_member_ratings.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_member_ratings.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: users, rating, buddypress

codeies-elite-user-ratings/elite-user-ratings.php 85% from 13 tests

The main file in "Codeies - Elite user Ratings" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("codeies-elite-user-ratings.php" instead of "elite-user-ratings.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin30,970 lines of code in 527 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1755,3638,54313,501
PHP2592,9507,53311,051
PO File268161,0172,194
CSS103491,1441,923
Sass4833401,746
JSON500472
Markdown324068
SVG10015

PHP code Passed 2 tests

Analyzing 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.27
Average class complexity5.46
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces23
Interfaces5
Traits0
Classes227
▷ Abstract classes125.29%
▷ Concrete classes21594.71%
▷ Final classes10.47%
Methods1,016
▷ Static methods959.35%
▷ Public methods80479.13%
▷ Protected methods19819.49%
▷ Private methods141.38%
Functions110
▷ Named functions2522.73%
▷ Anonymous functions8577.27%
Constants34
▷ Global constants823.53%
▷ Class constants2676.47%
▷ Public constants26100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/raty/images/cancel-off.png1.32KB1.50KB0.00%
public/raty/images/cancel-on.png4.21KB1.51KB▼ 64.16%
public/raty/images/star-off.png0.91KB0.81KB▼ 10.97%
public/raty/images/star-on.png1.01KB1.11KB0.00%
public/raty/images/star-half.png0.94KB1.06KB0.00%