83% zstore-manager-basic

Code Review | zStore Manager Basic

WordPress plugin zStore Manager Basic scored83%from 54 tests.

About plugin

  • Plugin page: zstore-manager-basic
  • Plugin version: 3.311
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3+
  • WordPress version: 6.3.1
  • First release: Feb 28, 2014
  • Latest release: Mar 31, 2023
  • Number of updates: 80
  • Update frequency: every 41.6 days
  • Top authors: ilenejohnson (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

300+ active /11,481 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.44MB] [CPU: ▼4.19ms] Passed 4 tests

An overview of server-side resources used by zStore Manager Basic
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4341.51 ▼3.14
Dashboard /wp-admin3.74 ▲0.4448.00 ▼3.86
Posts /wp-admin/edit.php3.86 ▲0.5049.27 ▼2.50
Add New Post /wp-admin/post-new.php6.34 ▲0.4688.54 ▼5.66
Media Library /wp-admin/upload.php3.67 ▲0.4435.42 ▼4.10

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
zstore_basic_manager_settings
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

zStore Manager Basic: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲11313.51 ▼1.057.79 ▲5.0838.94 ▼6.21
Dashboard /wp-admin2,222 ▲425.76 ▲0.0988.75 ▼3.9939.95 ▼0.02
Posts /wp-admin/edit.php2,130 ▲302.22 ▲0.2535.18 ▼6.9435.23 ▼0.49
Add New Post /wp-admin/post-new.php1,550 ▲2423.32 ▲0.23669.30 ▼7.6055.90 ▼1.77
Media Library /wp-admin/upload.php1,427 ▲274.33 ▲0.1898.29 ▼17.8338.81 ▼13.44

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 did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 take a closer look at the following
  • 10× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHWPINC/feed.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/zstore-manager-basic/includes/storedisplay.php on line 11
    • > PHP Warning
      include_once(ABSPATHWPINC/feed.php): failed to open stream: No such file or directory in wp-content/plugins/zstore-manager-basic/includes/storedisplay.php on line 11
    • > PHP Warning
      include_once(ABSPATHWPINC/feed.php): failed to open stream: No such file or directory in wp-content/plugins/zstore-manager-basic/includes/storedisplay.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function zstore\\manager\\add_action() in wp-content/plugins/zstore-manager-basic/includes/storedisplay.php:1288
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/zstore-manager-basic/includes/storedisplay.php on line 11
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/zstore-manager-basic/includes/storedisplay.php on line 11
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/zstore-manager-basic/includes/storedisplay.php on line 11
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/zstore-manager-basic/includes/storedisplay.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function zstore\\manager\\add_action() in wp-content/plugins/zstore-manager-basic/includes/storedisplay.php:1288
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHWPINC/feed.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/zstore-manager-basic/includes/storedisplay.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes: Please take inspiration from this readme.txt

zstore-manager-basic/zstore-manager.php 77% from 13 tests

The main file in "zStore Manager Basic" v. 3.311 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zstore-manager-basic.php" instead of "zstore-manager.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 379 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,795 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript42501211,085
PHP422183637
CSS218670
Markdown1003

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity55.67
▷ Minimum class complexity15.00
▷ Maximum class complexity90.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods66
▷ Static methods23.03%
▷ Public methods4974.24%
▷ Protected methods00.00%
▷ Private methods1725.76%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 were not PNG files found in your plugin