68% dizzyjam

Code Review | Dizzyjam

WordPress plugin Dizzyjam scored68%from 54 tests.

About plugin

  • Plugin page: dizzyjam
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.2
  • WordPress version: 6.3.1
  • First release: Feb 15, 2013
  • Latest release: Feb 15, 2013
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: mtrdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,112 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.50ms] Passed 4 tests

Analyzing server-side resources used by Dizzyjam
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.88 ▼5.60
Dashboard /wp-admin3.31 ▲0.0044.81 ▼4.65
Posts /wp-admin/edit.php3.36 ▲0.0046.31 ▲0.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.78 ▲4.70
Media Library /wp-admin/upload.php3.23 ▲0.0034.04 ▼0.72

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Dizzyjam
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.31 ▼1.071.56 ▼0.3839.15 ▼4.48
Dashboard /wp-admin2,206 ▲184.84 ▼0.03110.26 ▼5.7143.50 ▼0.93
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.0440.79 ▲3.6635.87 ▲3.01
Add New Post /wp-admin/post-new.php1,519 ▼2323.17 ▲4.83662.59 ▲0.3858.42 ▲9.28
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.0297.92 ▼10.3944.57 ▲0.89

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin has failed uninstalling correctly, leaving 47 files (0.20MB) in the plugin directory
    • (new file) admin/js/products.js
    • (new file) admin/js/shops.js
    • (new file) admin/css/styles.css
    • (new file) admin/products.php
    • (new file) admin/images/logo.png
    • (new file) admin/js/settings.js
    • (new file) admin/install.php
    • (new file) admin/admin.php
    • (new file) admin/images/nav.png
    • (new file) admin/settings.php
    • ...
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% 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 0% 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 fix the following items
  • 16× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/dizzyjam/dizzyjam.php
    • > /wp-content/plugins/dizzyjam/admin/shops.php
    • > /wp-content/plugins/dizzyjam/admin/install.php
    • > /wp-content/plugins/dizzyjam/templates/confirmation.php
    • > /wp-content/plugins/dizzyjam/includes/router.php
    • > /wp-content/plugins/dizzyjam/lib/pager.php
    • > /wp-content/plugins/dizzyjam/includes/products.php
    • > /wp-content/plugins/dizzyjam/lib/cart.php
    • > /wp-content/plugins/dizzyjam/includes/basket.php
    • > /wp-content/plugins/dizzyjam/lib/utils.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'MTR_Dizzyjam_Admin_Panel' not found in wp-content/plugins/dizzyjam/admin/settings.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: dizzyjam, shop, merch

dizzyjam/dizzyjam.php Passed 13 tests

This is the main PHP file of "Dizzyjam" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
78 characters long description:
This plugin allows to integrate a shop from dizzyjam.com website to your blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin3,218 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP295935082,481
CSS2571457
JavaScript7536280

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity21.76
▷ Minimum class complexity1.00
▷ Maximum class complexity77.00
Average method complexity4.18
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods111
▷ Static methods00.00%
▷ Public methods9585.59%
▷ Protected methods21.80%
▷ Private methods1412.61%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/nav.png3.10KB0.63KB▼ 79.84%
includes/images/logo-paypal.png14.29KB4.34KB▼ 69.59%
includes/images/logo-black.png3.60KB1.42KB▼ 60.46%
admin/images/logo.png1.55KB1.08KB▼ 30.13%
includes/images/logo-white.png3.61KB1.42KB▼ 60.62%