84% woo-shop-hacker

Code Review | Woo Shop Hacker

WordPress plugin Woo Shop Hacker scored84%from 54 tests.

About plugin

  • Plugin page: woo-shop-hacker
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.4
  • WordPress version: 6.3.1
  • First release: Nov 16, 2018
  • Latest release: Apr 16, 2020
  • Number of updates: 8
  • Update frequency: every 64.6 days
  • Top authors: seanconklin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.00MB] [CPU: ▲0.33ms] Passed 4 tests

Analyzing server-side resources used by Woo Shop Hacker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0045.47 ▲4.42
Dashboard /wp-admin3.31 ▲0.0050.83 ▼3.02
Posts /wp-admin/edit.php3.36 ▲0.0055.08 ▲4.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.46 ▼2.46
Media Library /wp-admin/upload.php3.23 ▲0.0038.78 ▲2.37

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

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

Browser metrics Passed 4 tests

Woo Shop Hacker: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▼0.121.79 ▲0.0643.55 ▲2.64
Dashboard /wp-admin2,206 ▲214.87 ▼0.00113.98 ▲10.1243.01 ▲0.66
Posts /wp-admin/edit.php2,092 ▼02.01 ▼0.0538.06 ▲0.9433.42 ▼2.31
Add New Post /wp-admin/post-new.php1,547 ▲3318.54 ▲0.97623.05 ▼64.1854.86 ▲1.02
Media Library /wp-admin/upload.php1,391 ▲64.21 ▼0.0698.31 ▼12.0244.01 ▼8.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 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 50% from 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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-shop-hacker/view.inventory.html.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-shop-hacker/class.settings.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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: shop hacker, woocommerce, import products, digital products, elearning courses

woo-shop-hacker/woo-shop-hacker.php 85% from 13 tests

The main PHP script in "Woo Shop Hacker" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0.1" instead of "3.0")
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected409 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP610385409

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity13.50
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16100.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin