10% woocommerce-admin-theme-for-shop-manager

Code Review | Woocommerce Admin Theme

WordPress plugin Woocommerce Admin Theme scored10%from 54 tests.

About plugin

  • Plugin page: woocommerce-admin...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6.2
  • WordPress version: 6.3.1
  • First release: Aug 18, 2013
  • Latest release: Feb 13, 2015
  • Number of updates: 167
  • Update frequency: every 3.3 days
  • Top authors: singhbalram786 (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

10+ active /24,923 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/woocommerce-admin-theme-for-shop-manager/eshop_theme.php+659
    Function create_function() is deprecated

Server metrics [RAM: ▼1.67MB] [CPU: ▼57.71ms] Passed 4 tests

This is a short check of server-side resources used by Woocommerce Admin Theme
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.31 ▼1.156.39 ▼42.52
Dashboard /wp-admin2.33 ▼0.976.61 ▼45.40
Posts /wp-admin/edit.php2.33 ▼1.026.20 ▼43.34
Add New Post /wp-admin/post-new.php2.33 ▼3.556.54 ▼99.56
Media Library /wp-admin/upload.php2.33 ▼0.896.79 ▼28.97
Reports /wp-admin/admin.php?page=woocommerce_reports2.337.55

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Woocommerce Admin Theme
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,117 ▼66914.15 ▼0.201.26 ▼0.8930.31 ▼14.08
Dashboard /wp-admin1,672 ▼5085.56 ▼0.0590.30 ▲1.8234.25 ▼7.36
Posts /wp-admin/edit.php2,089 ▼112.47 ▲0.4540.60 ▲3.5935.96 ▼0.68
Add New Post /wp-admin/post-new.php1,511 ▼1823.74 ▲0.72650.98 ▲6.8136.87 ▼20.67
Media Library /wp-admin/upload.php1,508 ▲1144.34 ▲0.16108.99 ▲7.8245.38 ▲1.44
Reports /wp-admin/admin.php?page=woocommerce_reports280.420.083.80

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/woocommerce-admin-theme-for-shop-manager/eshop_theme.php+659
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=woocommerce_reports
    • > Deprecated in wp-content/plugins/woocommerce-admin-theme-for-shop-manager/eshop_theme.php+865
    Function create_function() is deprecated

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-admin-theme-for-shop-manager/eshop_theme.php:21

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=woocommerce_reports
    • > Network (severe)
    wp-admin/admin.php?page=woocommerce_reports - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 56 tag instead of maximum 10
The official readme.txt is a good inspiration

woocommerce-admin-theme-for-shop-manager/eshop_theme.php 92% from 13 tests

The primary PHP file in "Woocommerce Admin Theme" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woocommerce-admin-theme-for-shop-manager.php" instead of "eshop_theme.php")

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
There were no executable files found in this plugin1,582 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS18923883
PHP1175170699

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity2.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions48
▷ Named functions48100.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
6 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/glyphicons-halflings.png12.50KB10.35KB▼ 17.19%
img/sidebar-icon-sprite-compact-0a9e6fad3dc7e5771f3c664333559b93.png5.97KB6.40KB0.00%
img/main-header-icons-8ff0feb429509e85b8a65438c04174f1.png5.32KB4.75KB▼ 10.77%
img/menu-active.png1.12KB0.15KB▼ 87.03%
img/icons32.png12.68KB8.00KB▼ 36.94%