84% jigoshop-monster-widget

Code Review | Jigoshop Monster Widget

WordPress plugin Jigoshop Monster Widget scored84%from 54 tests.

About plugin

  • Plugin page: jigoshop-monster-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.1
  • WordPress version: 6.3.1
  • First release: Dec 31, 2014
  • Latest release: Dec 31, 2014
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: webulous (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /708 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.84ms] Passed 4 tests

This is a short check of server-side resources used by Jigoshop Monster Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.35 ▼8.20
Dashboard /wp-admin3.33 ▼0.0148.72 ▼10.67
Posts /wp-admin/edit.php3.39 ▲0.0350.34 ▼0.46
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.39 ▼16.04
Media Library /wp-admin/upload.php3.26 ▲0.0341.19 ▲3.33

Server storage [IO: ▲0.01MB] [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: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_jigoshop-monster
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Jigoshop Monster Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.25 ▼0.782.57 ▲0.7943.84 ▲2.73
Dashboard /wp-admin2,203 ▲125.82 ▲0.92109.31 ▼1.0143.50 ▲4.56
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0338.13 ▼1.7437.06 ▲1.08
Add New Post /wp-admin/post-new.php1,538 ▲2423.37 ▲5.87734.33 ▲47.6650.70 ▼5.90
Media Library /wp-admin/upload.php1,391 ▲64.21 ▼0.01101.31 ▼21.7945.76 ▼1.58

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_jigoshop-monster
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jigoshop-monster-widget/jigoshop-monster-widget.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: jigoshop widget bundle, monster widget, widget, jigoshop monster widget, widget bundle

jigoshop-monster-widget/jigoshop-monster-widget.php 92% from 13 tests

Analyzing the main PHP file in "Jigoshop Monster Widget" version 1.0.0
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)

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 detected108 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13374108

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin