90% shedhub-seller

Code Review | ShedHub Seller

WordPress plugin ShedHub Seller scored90%from 54 tests.

About plugin

  • Plugin page: shedhub-seller
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Sep 12, 2022
  • Latest release: Sep 12, 2022
  • Number of updates: 6
  • Update frequency: every 0.8 days
  • Top authors: shedhub (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /467 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.35ms] Passed 4 tests

Analyzing server-side resources used by ShedHub Seller
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.67 ▼2.00
Dashboard /wp-admin3.33 ▲0.0345.96 ▼3.02
Posts /wp-admin/edit.php3.38 ▲0.0346.56 ▲0.49
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.03 ▼16.72
Media Library /wp-admin/upload.php3.25 ▲0.0332.83 ▼3.64

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for ShedHub Seller
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.55 ▼0.851.69 ▼0.2840.20 ▼3.26
Dashboard /wp-admin2,206 ▲215.89 ▲0.98100.00 ▼16.7640.46 ▼4.81
Posts /wp-admin/edit.php2,089 ▼01.99 ▲0.0339.14 ▲0.2936.08 ▼0.89
Add New Post /wp-admin/post-new.php6,195 ▲4,66719.23 ▼4.33893.28 ▲240.1753.40 ▼0.47
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0496.60 ▼7.0242.40 ▼3.25

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: marketing, electronic commerce

shedhub-seller/shedhub-seller.php Passed 13 tests

The main PHP file in "ShedHub Seller" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
37 characters long description:
Enables ShedHub Seller editor blocks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected462 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1102192
SVG100141
PHP3209129

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods457.14%
▷ Protected methods00.00%
▷ Private methods342.86%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png7.62KB3.96KB▼ 48.01%