84% shopizi

Code Review | Shopizi

WordPress plugin Shopizi scored84%from 54 tests.

About plugin

  • Plugin page: shopizi
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.8
  • WordPress version: 6.3.1
  • First release: Dec 2, 2021
  • Latest release: Dec 2, 2021
  • Number of updates: 3
  • Update frequency: every 17.3 days
  • Top authors: sunukunsinje (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /279 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 gracefully, with no errors

Server metrics [RAM: ▼15.70MB] [CPU: ▼3,254,120.72ms] Passed 4 tests

A check of server-side resources used by Shopizi
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0448.23 ▲1.62
Dashboard /wp-admin3.39 ▼62.9155.90 ▼13,016,486.62
Posts /wp-admin/edit.php3.44 ▲0.0455.24 ▲4.97
Add New Post /wp-admin/post-new.php5.97 ▲0.0495.90 ▲0.98
Media Library /wp-admin/upload.php3.31 ▲0.0438.34 ▲1.13

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Shopizi
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.27 ▲1.191.77 ▼3.6043.01 ▼3.31
Dashboard /wp-admin2,195 ▲215.61 ▲0.0395.12 ▼7.7744.71 ▲0.58
Posts /wp-admin/edit.php2,103 ▼01.98 ▼0.0641.63 ▲5.0639.49 ▲5.70
Add New Post /wp-admin/post-new.php1,534 ▲818.25 ▼5.30638.16 ▼89.1069.93 ▲8.35
Media Library /wp-admin/upload.php1,403 ▲34.20 ▼0.0297.43 ▼7.8342.47 ▼5.13

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just 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_shortcode() in wp-content/plugins/shopizi/shopizi.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (The view of the results during scroll.) image not found
You can look at the official readme.txt

shopizi/shopizi.php Passed 13 tests

The main PHP script in "Shopizi" version 1.0.0 is automatically included on every request by WordPress
77 characters long description:
Plugin for infinity scroll your WooCommerce Products without end-user action.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected264 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1238264

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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