84% quickreviewer-html-review

Code Review | QuickReviewer HTML Review Plugin

WordPress plugin QuickReviewer HTML Review Plugin scored84%from 54 tests.

About plugin

  • Plugin page: quickreviewer-htm...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Jun 4, 2020
  • Latest release: Mar 29, 2023
  • Number of updates: 17
  • Update frequency: every 60.5 days
  • Top authors: abdulkidwai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,140 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
Install script ran successfully

Server metrics [RAM: ▼1.24MB] [CPU: ▼51.56ms] Passed 4 tests

This is a short check of server-side resources used by QuickReviewer HTML Review Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.7311.84 ▼35.32
Dashboard /wp-admin2.77 ▼0.5317.87 ▼30.86
Posts /wp-admin/edit.php2.78 ▼0.5916.70 ▼36.56
Add New Post /wp-admin/post-new.php2.78 ▼3.1217.00 ▼103.48
Media Library /wp-admin/upload.php2.78 ▼0.4619.61 ▼19.19

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for QuickReviewer HTML Review Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.69 ▲0.332.06 ▲0.1936.54 ▼11.88
Dashboard /wp-admin2,195 ▲145.62 ▼0.1090.42 ▼9.3238.12 ▼3.47
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0641.68 ▲1.4236.55 ▼1.87
Add New Post /wp-admin/post-new.php1,526 ▼023.27 ▲0.10666.72 ▼5.0661.03 ▲6.30
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.06107.76 ▲5.8647.71 ▲4.27

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

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
Everything seems fine, however 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quickreviewer-html-review/QR-Proof.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% 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
These attributes need your attention:
  • Requires php: Version not formatted correctly
You can take inspiration from this readme.txt

quickreviewer-html-review/QR-Proof.php 92% from 13 tests

The main PHP file in "QuickReviewer HTML Review Plugin" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("quickreviewer-html-review.php" instead of "QR-Proof.php")

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
Good job! No executable or dangerous file extensions detected14 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131414

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.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%
Functions2
▷ Named functions2100.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
No PNG files were detected