90% woo-reviews-manually-approved

Code Review | Manually Approved Reviews for WooCommerce

WordPress plugin Manually Approved Reviews for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: woo-reviews-manua...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 23, 2016
  • Latest release: Feb 25, 2023
  • Number of updates: 26
  • Update frequency: every 97.3 days
  • Top authors: teckel (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /6,870 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: ▼7.92ms] Passed 4 tests

Analyzing server-side resources used by Manually Approved Reviews for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.28 ▼9.91
Dashboard /wp-admin3.31 ▼0.0446.68 ▼19.87
Posts /wp-admin/edit.php3.36 ▲0.0052.93 ▲1.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.05 ▼1.39
Media Library /wp-admin/upload.php3.23 ▲0.0035.18 ▼0.49

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Manually Approved Reviews for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.42 ▼0.121.80 ▼0.2545.38 ▼1.72
Dashboard /wp-admin2,195 ▲185.61 ▼0.0486.59 ▼5.0139.28 ▼2.08
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0339.63 ▼2.9137.66 ▼1.00
Add New Post /wp-admin/post-new.php1,526 ▼223.12 ▼0.10631.26 ▼54.7949.50 ▼10.56
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.02100.19 ▼14.6041.47 ▼5.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
You can take inspiration from this readme.txt

woo-reviews-manually-approved/woo-reviews-manually-approved.php Passed 13 tests

The principal PHP file in "Manually Approved Reviews for WooCommerce" v. 1.3.0 is loaded by WordPress automatically on each request
58 characters long description:
Force WooCommerce product reviews to be manually approved.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192411

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 code1.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected