79% art-woocommerce-custom-sale

Code Review | Art Woocommerce Custom Sale

WordPress plugin Art Woocommerce Custom Sale scored79%from 54 tests.

About plugin

  • Plugin page: art-woocommerce-c...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-5.3
  • WordPress version: 6.3.1
  • First release: Oct 4, 2018
  • Latest release: Nov 14, 2019
  • Number of updates: 4
  • Update frequency: every 101.5 days
  • Top authors: artabr (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

700+ active /5,206 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Art Woocommerce Custom Sale
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.05 ▼3.87
Dashboard /wp-admin3.32 ▼0.0248.56 ▼19.88
Posts /wp-admin/edit.php3.38 ▲0.0251.93 ▼2.22
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.81 ▼0.61
Media Library /wp-admin/upload.php3.25 ▲0.0238.58 ▲4.79

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Art Woocommerce Custom Sale
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.24 ▼0.381.78 ▼0.2541.04 ▲0.31
Dashboard /wp-admin2,195 ▲185.63 ▼0.0191.06 ▼7.2841.16 ▲2.79
Posts /wp-admin/edit.php2,100 ▲31.95 ▼0.0339.77 ▼0.6634.94 ▼0.63
Add New Post /wp-admin/post-new.php1,528 ▼323.08 ▼0.13607.82 ▼70.4758.06 ▼5.30
Media Library /wp-admin/upload.php1,400 ▲34.21 ▼0.0498.58 ▼8.3044.22 ▼2.68

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method AWOOS_Custom_Sale::uninstall() should not be called statically
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% 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
Attributes that require attention: The official readme.txt might help

art-woocommerce-custom-sale/art-woocommerce-custom-sale.php 92% from 13 tests

The entry point to "Art Woocommerce Custom Sale" version 1.1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.8" instead of "3.3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected366 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3133260298
PO File1192368

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity10.67
▷ Minimum class complexity5.00
▷ Maximum class complexity15.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods15.26%
▷ Public methods19100.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

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