83% custom-review

Code Review | Custom Review

WordPress plugin Custom Review scored83%from 54 tests.

About plugin

  • Plugin page: custom-review
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Sep 10, 2021
  • Latest release: Sep 11, 2021
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: zworthkey (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /333 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.58ms] Passed 4 tests

Analyzing server-side resources used by Custom Review
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.08 ▼3.96
Dashboard /wp-admin3.31 ▲0.0147.64 ▼6.19
Posts /wp-admin/edit.php3.36 ▲0.0146.05 ▼6.68
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.46 ▼5.47
Media Library /wp-admin/upload.php3.23 ▲0.0134.09 ▼2.26

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Custom Review
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.30 ▼1.321.79 ▲0.0541.09 ▼7.99
Dashboard /wp-admin2,209 ▲245.83 ▲0.94104.21 ▲5.1944.06 ▲1.29
Posts /wp-admin/edit.php2,091 ▼12.00 ▼0.0634.23 ▼10.1534.36 ▼2.67
Add New Post /wp-admin/post-new.php1,534 ▼823.28 ▲5.19583.24 ▼19.3647.93 ▼3.92
Media Library /wp-admin/upload.php1,397 ▲94.32 ▲0.1399.03 ▲3.3740.60 ▼4.40

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/custom-review/admin/partials/zwk_custom_review-admin-display.php
    • > /wp-content/plugins/custom-review/public/partials/zwk_custom_review-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Donate link: Invalid URI ("zworthkey.com/about-us")
  • Plugin Name: You should set the name of your plugin on the first line ( === custom-review === )
The official readme.txt is a good inspiration

custom-review/zwk_custom_review.php 85% from 13 tests

The primary PHP file in "Custom Review" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("custom-review.php" instead of "zwk_custom_review.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin762 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP12178526496
JavaScript3439161
CSS3388105

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.42
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2884.85%
▷ Protected methods00.00%
▷ Private methods515.15%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin