84% review-disclaimer

Code Review | Review Disclaimer

WordPress plugin Review Disclaimer scored84%from 54 tests.

About plugin

  • Plugin page: review-disclaimer
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.2
  • WordPress version: 6.3.1
  • First release: Dec 18, 2013
  • Latest release: May 3, 2023
  • Number of updates: 28
  • Update frequency: every 122.3 days
  • Top authors: scott.deluzio (96.43%)ampmode (7.14%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /8,584 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼11.78ms] Passed 4 tests

A check of server-side resources used by Review Disclaimer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.37 ▼5.82
Dashboard /wp-admin3.32 ▼0.0343.06 ▼17.63
Posts /wp-admin/edit.php3.37 ▲0.0144.95 ▲1.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.23 ▼21.98
Media Library /wp-admin/upload.php3.24 ▲0.0132.36 ▼1.67
Review Disclaimer /wp-admin/options-general.php?page=oizuledreviewdisclaimer3.2431.69

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
oizuled-review-disclaimer
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Review Disclaimer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.30 ▼0.931.72 ▲0.0341.38 ▼3.70
Dashboard /wp-admin2,210 ▲195.83 ▼0.0598.42 ▼14.2041.96 ▼1.15
Posts /wp-admin/edit.php2,093 ▲72.01 ▲0.0335.89 ▼1.1642.52 ▲5.99
Add New Post /wp-admin/post-new.php6,185 ▲4,66226.04 ▲2.90873.95 ▲232.2159.50 ▲8.25
Media Library /wp-admin/upload.php1,392 ▲134.31 ▲0.0598.40 ▼1.7341.22 ▲0.57
Review Disclaimer /wp-admin/options-general.php?page=oizuledreviewdisclaimer8472.0224.8624.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/review-disclaimer/blocks/review-disclaimer.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 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: disclaimer, gutenberg, plugin, shortcode, review

review-disclaimer/review-disclaimer.php Passed 13 tests

The main file in "Review Disclaimer" v. 2.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
99 characters long description:
Use a shortcode or block to quickly insert product or service review disclaimers inside your posts.

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
Success! There were no dangerous files found in this plugin124 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP31438101
JavaScript151823

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin