89% quick-stock-management

Code Review | Quick Stock Management

WordPress plugin Quick Stock Management scored 89% from 54 tests.

About plugin

  • Plugin page: quick-stock-manag...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Jun 20, 2018
  • Latest release: Aug 11, 2020
  • Number of updates: 11
  • Update frequency: every 71.2 days
  • Top authors: wpboss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 790 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.75ms] Passed 4 tests

This is a short check of server-side resources used by Quick Stock Management
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.55 ▼3.08
Dashboard /wp-admin3.35 ▲0.0547.14 ▼0.31
Posts /wp-admin/edit.php3.47 ▲0.1146.40 ▼2.14
Add New Post /wp-admin/post-new.php5.93 ▲0.0592.73 ▼8.55
Media Library /wp-admin/upload.php3.28 ▲0.0536.66 ▼1.21

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Quick Stock Management
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.74 ▲0.351.89 ▲0.1642.83 ▼6.02
Dashboard /wp-admin2,206 ▲155.93 ▲0.03112.51 ▲11.7543.66 ▼4.06
Posts /wp-admin/edit.php2,086 ▼32.03 ▼0.0233.71 ▼6.3035.80 ▲0.10
Add New Post /wp-admin/post-new.php1,542 ▲918.45 ▼4.81606.06 ▲3.1454.68 ▲7.87
Media Library /wp-admin/upload.php1,388 ▲64.20 ▼0.0393.57 ▼6.3541.26 ▼2.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected 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 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
These attributes need your attention: Please take inspiration from this readme.txt

quick-stock-management/quick-stock-management.php 92% from 13 tests

Analyzing the main PHP file in "Quick Stock Management" version 1.1.0
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected195 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP992420195

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.33
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods22
▷ Static methods29.09%
▷ Public methods1881.82%
▷ Protected methods00.00%
▷ Private methods418.18%
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin