90% woocommerce-domination

Code Review | DOMINATION! Let WooCommerce take control of your dashboard

WordPress plugin DOMINATION! Let WooCommerce take control of your dashboard scored90%from 54 tests.

About plugin

  • Plugin page: woocommerce-domin...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 6.3.1
  • First release: Feb 15, 2014
  • Latest release: Aug 11, 2020
  • Number of updates: 18
  • Update frequency: every 131.6 days
  • Top authors: claudiosanches (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

1,000+ active /21,429 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by DOMINATION! Let WooCommerce take control of your dashboard
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0133.43 ▼2.72
Dashboard /wp-admin3.32 ▲0.0144.47 ▼3.27
Posts /wp-admin/edit.php3.37 ▲0.0145.30 ▼1.36
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.56 ▼1.03
Media Library /wp-admin/upload.php3.25 ▲0.0135.18 ▲0.20

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

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

Browser metrics Passed 4 tests

DOMINATION! Let WooCommerce take control of your dashboard: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.72 ▲0.151.64 ▲0.0557.04 ▲13.01
Dashboard /wp-admin2,200 ▲235.57 ▼0.0986.35 ▼0.6641.86 ▲2.66
Posts /wp-admin/edit.php2,105 ▲52.03 ▼0.0133.10 ▼2.4834.59 ▼1.96
Add New Post /wp-admin/post-new.php1,534 ▲523.11 ▲0.07662.53 ▼13.8552.33 ▼13.74
Media Library /wp-admin/upload.php1,408 ▲54.17 ▲0.0196.29 ▼2.9744.36 ▼2.04

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
The SRP test was a success

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: woocommerce, admin

woocommerce-domination/woocommerce-domination.php 92% from 13 tests

The main file in "DOMINATION! Let WooCommerce take control of your dashboard" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected207 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP455136200
CSS1137

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity7.33
▷ Minimum class complexity3.00
▷ Maximum class complexity12.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods637.50%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected