90% reviews-plus

Code Review | Reviews Plus

WordPress plugin Reviews Plus scored90%from 54 tests.

About plugin

  • Plugin page: reviews-plus
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Oct 10, 2016
  • Latest release: Oct 30, 2023
  • Number of updates: 88
  • Update frequency: every 29.3 days
  • Top authors: impleCode (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

1,000+ active /54,172 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.48MB] [CPU: ▼2.18ms] Passed 4 tests

An overview of server-side resources used by Reviews Plus
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4344.66 ▲2.50
Dashboard /wp-admin3.88 ▲0.5352.34 ▼5.91
Posts /wp-admin/edit.php3.94 ▲0.5850.40 ▲2.74
Add New Post /wp-admin/post-new.php6.35 ▲0.4684.93 ▼8.04
Media Library /wp-admin/upload.php3.75 ▲0.5140.43 ▲5.13
Reviews /wp-admin/options-general.php?page=ic_reviews3.7232.21

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Reviews Plus
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲14413.63 ▼0.729.12 ▲7.0339.67 ▼4.57
Dashboard /wp-admin2,222 ▲454.97 ▼0.5799.23 ▲10.8340.05 ▲0.53
Posts /wp-admin/edit.php2,133 ▲302.43 ▲0.4642.24 ▲0.7553.06 ▲16.73
Add New Post /wp-admin/post-new.php1,742 ▲21424.82 ▲1.56579.26 ▼69.8337.41 ▼20.48
Media Library /wp-admin/upload.php1,456 ▲534.56 ▲0.3994.98 ▼8.6339.50 ▼4.22
Reviews /wp-admin/options-general.php?page=ic_reviews1,1772.3744.2742.03

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

reviews-plus/reviews-plus.php Passed 13 tests

"Reviews Plus" version 1.3.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
95 characters long description:
Add rich reviews to posts, pages or any custom post type. Reviews summary compatible with SERP.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected3,091 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP194528102,582
CSS46925327
JavaScript63733182

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity28.00
▷ Minimum class complexity3.00
▷ Maximum class complexity53.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1062.50%
▷ Protected methods637.50%
▷ Private methods00.00%
Functions135
▷ Named functions135100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/implecode.png11.70KB5.04KB▼ 56.91%
css/images/ready.png7.41KB2.52KB▼ 65.99%
css/images/info.png2.21KB1.70KB▼ 22.85%
css/images/doc.png4.91KB1.64KB▼ 66.49%
css/images/warning.png1.64KB1.48KB▼ 9.80%