78% storeman

Code Review | storeman

WordPress plugin storeman scored78%from 54 tests.

About plugin

  • Plugin page: storeman
  • Plugin version: 2.2.7
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 11, 2022
  • Latest release: May 14, 2023
  • Number of updates: 17
  • Update frequency: every 28.7 days
  • Top authors: avitrop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,327 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.12MB] [CPU: ▼4.96ms] Passed 4 tests

This is a short check of server-side resources used by storeman
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1343.58 ▼1.53
Dashboard /wp-admin3.43 ▲0.1252.80 ▼4.62
Posts /wp-admin/edit.php3.54 ▲0.1850.66 ▲0.78
Add New Post /wp-admin/post-new.php6.01 ▲0.1290.10 ▼13.46
Media Library /wp-admin/upload.php3.35 ▲0.1238.57 ▼0.21

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

Browser metrics Passed 4 tests

A check of browser resources used by storeman
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲10913.37 ▼1.008.25 ▲6.4747.75 ▲3.65
Dashboard /wp-admin2,198 ▲215.56 ▼0.1485.34 ▼11.2644.60 ▲2.98
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0234.05 ▼3.4537.22 ▲2.85
Add New Post /wp-admin/post-new.php1,526 ▼223.09 ▲0.22651.83 ▼8.5560.65 ▲11.37
Media Library /wp-admin/upload.php1,394 ▼64.22 ▼0.0297.11 ▼18.3442.45 ▼10.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/storeman/admin/partials/storeman-admin-display.php
    • > /wp-content/plugins/storeman/public/partials/storeman-public-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'ElementorPro\\Modules\\Forms\\Classes\\Action_Base' not found in wp-content/plugins/storeman/admin/class-webhook-storeman-action.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === storeman === )
Please take inspiration from this readme.txt

storeman/storeman.php Passed 13 tests

The main PHP file in "storeman" ver. 2.2.7 adds more information about the plugin and also serves as the entry point for this plugin
36 characters long description:
add storeman to your WordPress site.

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
There were no executable files found in this plugin683 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP13191578572
JSON20054
YAML27747
JavaScript17010
CSS2080

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods52
▷ Static methods23.85%
▷ Public methods4382.69%
▷ Protected methods35.77%
▷ Private methods611.54%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin