90% highlight-multiple-quantities-in-order

Code Review | Highlight Multiple Quantities In Order

WordPress plugin Highlight Multiple Quantities In Order scored90%from 54 tests.

About plugin

  • Plugin page: highlight-multipl...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Apr 4, 2021
  • Latest release: Apr 4, 2021
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: paivanjerry (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /330 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
The plugin installed gracefully, with no errors

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

Server-side resources used by Highlight Multiple Quantities In Order
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.87 ▼4.30
Dashboard /wp-admin3.31 ▼0.0447.33 ▼9.27
Posts /wp-admin/edit.php3.36 ▲0.0059.68 ▲12.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.28 ▼19.21
Media Library /wp-admin/upload.php3.23 ▲0.0034.98 ▲2.02

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Highlight Multiple Quantities In Order
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.27 ▼1.384.66 ▲2.7738.20 ▼4.23
Dashboard /wp-admin2,203 ▲155.83 ▲0.9197.59 ▼3.3737.93 ▼9.28
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0141.01 ▲5.2836.01 ▲2.32
Add New Post /wp-admin/post-new.php1,533 ▼923.54 ▲5.34677.31 ▲32.1960.00 ▲4.95
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.06105.60 ▲6.5247.84 ▲3.50

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
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
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: quantity, order, store, multiple

highlight-multiple-quantities-in-order/highlight-multiple-quantities-in-order.php Passed 13 tests

The principal PHP file in "Highlight Multiple Quantities In Order" v. 1.0.0 is loaded by WordPress automatically on each request
93 characters long description:
This plugin ensures that you will notice when a single product quantity in order is over one.

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
There were no executable files found in this plugin28 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript10015
PHP141013

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.75
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

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