89% woo-genie-checking

Code Review | WooCommerce Genie Checking

WordPress plugin WooCommerce Genie Checking scored89%from 54 tests.

About plugin

  • Plugin page: woo-genie-checking
  • Plugin version: 2.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.3-5.8
  • WordPress version: 6.3.1
  • First release: Nov 24, 2017
  • Latest release: Aug 23, 2021
  • Number of updates: 12
  • Update frequency: every 114.0 days
  • Top authors: anasbinmukim (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /931 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.18MB] [CPU: ▼13.16ms] Passed 4 tests

Analyzing server-side resources used by WooCommerce Genie Checking
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▼0.6125.24 ▼17.43
Dashboard /wp-admin3.33 ▲0.0350.25 ▼2.62
Posts /wp-admin/edit.php3.20 ▼0.1636.91 ▼22.21
Add New Post /wp-admin/post-new.php5.91 ▲0.0395.66 ▼10.37
Media Library /wp-admin/upload.php3.26 ▲0.0336.46 ▲0.22

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

WooCommerce Genie Checking: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,456 ▼29013.26 ▼1.240.59 ▼1.3618.41 ▼25.67
Dashboard /wp-admin2,206 ▲185.85 ▲0.94108.68 ▼2.9139.81 ▼4.24
Posts /wp-admin/edit.php45 ▼2,0470.44 ▼1.600.08 ▼38.569.52 ▼28.14
Add New Post /wp-admin/post-new.php1,522 ▼823.37 ▲5.18634.90 ▲10.6864.82 ▲2.77
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.1098.94 ▼4.3347.09 ▲3.86

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 7 options in the database
    • theysaidso_admin_options
    • recovery_mode_email_last_sent
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 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 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
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 just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: woocommerce, genie checking, payment gateway, cashbox, genie cashbox

woo-genie-checking/woo-genie-checking.php 92% from 13 tests

The principal PHP file in "WooCommerce Genie Checking" v. 2.1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "3.2.3")

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

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity22.00
▷ Minimum class complexity5.00
▷ Maximum class complexity39.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.69MB with 0.48MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png161.62KB45.85KB▼ 71.63%
assets/screenshot-1.png286.45KB75.77KB▼ 73.55%
images/geniecashbox.png15.10KB5.74KB▼ 62.01%
assets/screenshot-2.png239.13KB60.51KB▼ 74.70%