78% chimney-rock-order-barcodes

Code Review | Chimney Rock Order Barcodes

WordPress plugin Chimney Rock Order Barcodes scored78%from 54 tests.

About plugin

  • Plugin page: chimney-rock-orde...
  • Plugin version: 1.0.10
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 24, 2021
  • Latest release: Nov 29, 2023
  • Number of updates: 14
  • Update frequency: every 59.1 days
  • Top authors: sdev1913 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /644 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by Chimney Rock Order Barcodes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.05 ▼2.75
Dashboard /wp-admin3.31 ▼0.0346.19 ▼12.88
Posts /wp-admin/edit.php3.36 ▲0.0149.59 ▲3.31
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.33 ▼16.89
Media Library /wp-admin/upload.php3.24 ▲0.0133.11 ▲3.52

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 68 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
crm_order_barcodes_version
can_compress_scripts

Browser metrics Passed 4 tests

Chimney Rock Order Barcodes: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3014.45 ▼0.261.64 ▼0.0637.30 ▼6.26
Dashboard /wp-admin2,200 ▲205.64 ▲0.0894.23 ▲0.9343.42 ▼3.57
Posts /wp-admin/edit.php2,105 ▲52.01 ▼0.0138.71 ▲2.5237.54 ▼0.13
Add New Post /wp-admin/post-new.php1,528 ▲223.28 ▲0.07672.17 ▲50.5748.23 ▼0.73
Media Library /wp-admin/upload.php1,402 ▲24.18 ▼0.0197.70 ▲3.4042.94 ▲0.37

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

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/chimney-rock-order-barcodes/vendor/enshrined/svg-sanitize/src/svg-scanner.php
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Interface 'enshrined\\svgSanitize\\data\\TagInterface' not found in wp-content/plugins/chimney-rock-order-barcodes/vendor/enshrined/svg-sanitize/src/data/AllowedTags.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/chimney-rock-order-barcodes/vendor/enshrined/svg-sanitize/tests/AllowedTagsTest.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'enshrined\\svgSanitize\\data\\AttributeInterface' not found in wp-content/plugins/chimney-rock-order-barcodes/vendor/enshrined/svg-sanitize/src/data/AllowedAttributes.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'enshrined\\svgSanitize\\data\\TagInterface' not found in wp-content/plugins/chimney-rock-order-barcodes/vendor/enshrined/svg-sanitize/tests/Fixtures/TestAllowedTags.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/chimney-rock-order-barcodes/vendor/enshrined/svg-sanitize/tests/SubjectTest.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'enshrined\\svgSanitize\\data\\AttributeInterface' not found in wp-content/plugins/chimney-rock-order-barcodes/vendor/enshrined/svg-sanitize/tests/Fixtures/TestAllowedAttributes.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/chimney-rock-order-barcodes/vendor/enshrined/svg-sanitize/tests/SanitizerTest.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/chimney-rock-order-barcodes/vendor/enshrined/svg-sanitize/tests/AllowedAttributesTest.php:10
    • > PHP Warning
      array_values() expects parameter 1 to be array, null given in wp-content/plugins/chimney-rock-order-barcodes/vendor/enshrined/svg-sanitize/src/svg-scanner.php on line 70

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Contributors: Plugin contributors not specified
Please take inspiration from this readme.txt

chimney-rock-order-barcodes/functions.php 85% from 13 tests

The main PHP script in "Chimney Rock Order Barcodes" version 1.0.10 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("chimney-rock-order-barcodes.php" instead of "functions.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 166 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin106,301 lines of code in 64 files:
LanguageFilesBlank linesComment linesLines of code
SVG2420,0408100,749
PHP335581,1185,374
JSON10055
Markdown143049
XML35039
YAML212535

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity31.96
▷ Minimum class complexity1.00
▷ Maximum class complexity543.00
Average method complexity4.52
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces10
Interfaces2
Traits1
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods207
▷ Static methods2914.01%
▷ Public methods11756.52%
▷ Protected methods2110.14%
▷ Private methods6933.33%
Functions10
▷ Named functions770.00%
▷ Anonymous functions330.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin