80% plugin-reviews

Code Review | Plugin Reviews

WordPress plugin Plugin Reviews scored80%from 54 tests.

About plugin

  • Plugin page: plugin-reviews
  • Plugin version: 0.6.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.6
  • WordPress version: 6.3.1
  • First release: Jun 4, 2015
  • Latest release: Nov 24, 2020
  • Number of updates: 20
  • Update frequency: every 100.1 days
  • Top authors: julien731 (40%)anasbinmukim (40%)hiren1612 (30%)

Code review

54 tests

User reviews

5 reviews

Install metrics

50+ active /2,880 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: ▼5.43ms] Passed 4 tests

An overview of server-side resources used by Plugin Reviews
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.86 ▼3.80
Dashboard /wp-admin3.31 ▲0.0146.15 ▼2.79
Posts /wp-admin/edit.php3.36 ▲0.0143.71 ▼7.01
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.66 ▼8.13
Media Library /wp-admin/upload.php3.24 ▲0.0134.07 ▲2.86

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugin Reviews
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲16813.64 ▼0.557.61 ▲5.5138.18 ▼11.29
Dashboard /wp-admin2,215 ▲274.91 ▼0.9894.98 ▼11.9140.69 ▼1.29
Posts /wp-admin/edit.php2,095 ▲62.08 ▲0.0734.05 ▼1.4830.93 ▼2.29
Add New Post /wp-admin/post-new.php1,539 ▲1123.27 ▼0.02656.04 ▲16.9454.01 ▼4.09
Media Library /wp-admin/upload.php1,397 ▲64.35 ▲0.1996.48 ▼0.9542.47 ▲0.82

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • wr_reviews_flush_transient
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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 | 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: wordpress, ratings, plugin reviews, reviews, plugins

plugin-reviews/plugin-reviews.php 92% from 13 tests

The main file in "Plugin Reviews" v. 0.6.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • 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 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please make sure to remedy the following
  • For security reasons, never distribute binary or executable files with your plugin
    • .url - Internet Shortcut in Firefox, IE, Chrome, Safari
      • wp-content/plugins/plugin-reviews/vendor/echo.url
      • wp-content/plugins/plugin-reviews/vendor/slick.url
3,072 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript5727422,029
PHP3223401464
CSS3455271
Sass2271258
PO File14429
SVG11013
Ruby1208

PHP code Passed 2 tests

Analyzing 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.23
Average class complexity19.67
▷ Minimum class complexity12.00
▷ Maximum class complexity30.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods41
▷ Static methods512.20%
▷ Public methods1639.02%
▷ Protected methods2560.98%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin