90% hivepress-reviews

Code Review | HivePress Reviews

WordPress plugin HivePress Reviews scored90%from 54 tests.

About plugin

  • Plugin page: hivepress-reviews
  • Plugin version: 1.3.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 25, 2018
  • Latest release: Apr 11, 2023
  • Number of updates: 18
  • Update frequency: every 90.5 days
  • Top authors: hivepress (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

6,000+ active /43,045 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.00MB] [CPU: ▼7.77ms] Passed 4 tests

An overview of server-side resources used by HivePress Reviews
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.06 ▼10.70
Dashboard /wp-admin3.31 ▲0.0150.21 ▼8.87
Posts /wp-admin/edit.php3.36 ▲0.0148.50 ▼2.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.73 ▼6.72
Media Library /wp-admin/upload.php3.23 ▲0.0033.34 ▼4.77

Server storage [IO: ▲0.12MB] [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: 46 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by HivePress Reviews
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.38 ▼0.152.04 ▲0.4343.73 ▼3.76
Dashboard /wp-admin2,198 ▲215.58 ▼0.1099.63 ▼3.1545.02 ▲2.69
Posts /wp-admin/edit.php2,097 ▼61.96 ▼0.0635.26 ▼0.4934.72 ▲1.48
Add New Post /wp-admin/post-new.php1,527 ▲123.04 ▼0.07678.01 ▲5.1055.18 ▼11.88
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0196.39 ▼12.5344.04 ▼4.26

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: classifieds, listings, directory, reviews, hivepress

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

"HivePress Reviews" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
40 characters long description:
Allow users to rate and review listings.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,703 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP363907981,551
LESS1266125
JavaScript331121
JSON1005
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity9.80
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes213.33%
Methods74
▷ Static methods2331.08%
▷ Public methods6689.19%
▷ Protected methods68.11%
▷ Private methods22.70%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin