74% sc-simple-zazzle

Code Review | SC Simple Zazzle

WordPress plugin SC Simple Zazzle scored74%from 54 tests.

About plugin

  • Plugin page: sc-simple-zazzle
  • Plugin version: 1.1.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.1
  • WordPress version: 6.3.1
  • First release: Aug 28, 2019
  • Latest release: Jan 5, 2023
  • Number of updates: 76
  • Update frequency: every 16.2 days
  • Top authors: sayocode (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,558 total downloads

Benchmarks

Plugin footprint 65% 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 gracefully, with no errors

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

Server-side resources used by SC Simple Zazzle
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1790.86 ▲47.86
Dashboard /wp-admin3.33 ▼0.0290.31 ▲23.02
Posts /wp-admin/edit.php3.44 ▲0.0987.87 ▲42.54
Add New Post /wp-admin/post-new.php5.92 ▲0.04126.52 ▲29.57
Media Library /wp-admin/upload.php3.25 ▲0.02216.66 ▲180.08
Add New /wp-admin/admin.php?page=simple-zazzle-edit3.4282.61
Simple Zazzle /wp-admin/admin.php?page=simple-zazzle3.2275.66

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 18 new files
Database: 1 new table, 7 new options
New tables
wp_sc_simple_zazzle_table
New WordPress options
theysaidso_admin_options
widget_scszwidget
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for SC Simple Zazzle
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.57 ▼0.701.54 ▼0.3839.93 ▼4.19
Dashboard /wp-admin2,232 ▲445.83 ▼0.06101.47 ▼2.1841.49 ▼3.69
Posts /wp-admin/edit.php2,121 ▲322.05 ▲0.0340.76 ▲2.7830.51 ▼5.28
Add New Post /wp-admin/post-new.php1,538 ▲1021.11 ▲2.80692.08 ▲37.9864.39 ▲9.02
Media Library /wp-admin/upload.php1,417 ▲324.25 ▲0.11106.99 ▲4.5448.14 ▲4.98
Add New /wp-admin/admin.php?page=simple-zazzle-edit1,3052.2627.2632.98
Simple Zazzle /wp-admin/admin.php?page=simple-zazzle9422.0723.5235.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_sc_simple_zazzle_table
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_scszwidget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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 | 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
Please take a closer look at the following
  • 15× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sc-simple-zazzle/src/view-table.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/sc-simple-zazzle/src/country-list.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/sc-simple-zazzle/src/uninstall.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/sc-simple-zazzle/src/edit-short-code.php:138
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/sc-simple-zazzle/src/list-table.php on line 50
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/sc-simple-zazzle/src/edit-short-code.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sc-simple-zazzle/src/output-item-list.php:3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/sc-simple-zazzle/src/list-table.php on line 50
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sc-simple-zazzle/src/widget.php:4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/sc-simple-zazzle/src/view-table.php on line 3

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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Main screen.), #2 (Screen to edit Zazzle information.)
You can take inspiration from this readme.txt

sc-simple-zazzle/sc-simple-zazzle.php 92% from 13 tests

Analyzing the main PHP file in "SC Simple Zazzle" version 1.1.6
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 176 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,679 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP1095581,018
PO File1102107235
JavaScript24133228
Markdown1330104
CSS119094

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity7.00
▷ Minimum class complexity6.00
▷ Maximum class complexity8.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions1894.74%
▷ Anonymous functions15.26%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin