83% dezdy-mcommerce

Code Review | Dezdy

WordPress plugin Dezdy scored 83% from 54 tests.

About plugin

  • Plugin page: dezdy-mcommerce
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.2
  • WordPress version: 5.8.1
  • First release: Jan 4, 2017
  • Latest release: Jan 4, 2017
  • Number of updates: 5
  • Update frequency: every 4.2 days
  • Top authors: dezdy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 385 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.61MB] [CPU: ▼176.35ms] Passed 4 tests

Analyzing server-side resources used by Dezdy
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.04 ▲0.3233.28 ▲7.89
Dashboard /wp-admin3.04 ▼0.0224.73 ▼23.09
Posts /wp-admin/edit.php3.04 ▼0.0721.77 ▼29.71
Add New Post /wp-admin/post-new.php3.04 ▼2.4027.78 ▼639.89
Media Library /wp-admin/upload.php3.04 ▲0.0424.93 ▼12.69
Dezdy Application Key /wp-admin/options-general.php?page=DezdyApplicationKey3.0420.62

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Dezdy: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,758 ▲16216.28 ▲0.279.34 ▲0.5858.58 ▲10.08
Dashboard /wp-admin2,967 ▲365.87 ▼0.20146.77 ▼7.10127.17 ▲6.72
Posts /wp-admin/edit.php2,744 ▲52.70 ▲0.0070.94 ▼0.90101.26 ▲6.96
Add New Post /wp-admin/post-new.php1,686 ▲8218.64 ▼0.25386.63 ▼22.33120.39 ▲7.11
Media Library /wp-admin/upload.php1,815 ▲85.02 ▲0.01159.59 ▲7.07125.50 ▲3.46
Dezdy Application Key /wp-admin/options-general.php?page=DezdyApplicationKey1,0362.0558.2165.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5495
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=DezdyApplicationKey
    • > User deprecated in wp-includes/functions.php+5495
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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:
  • Stable tag: Empty value
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

dezdy-mcommerce/dezdy.php 85% from 13 tests

"Dezdy" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("dezdy-mcommerce.php" instead of "dezdy.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 209 characters long)

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
Success! There were no dangerous files found in this plugin3,921 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP113583473,336
CSS4646550
JavaScript14435

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions43
▷ Named functions43100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/add.png1.66KB1.31KB▼ 21.24%
images/148838.png1.35KB0.55KB▼ 59.35%
images/old148838.png3.32KB0.75KB▼ 77.39%
images/149217.png3.16KB0.85KB▼ 73.08%
images/unknown-icon.png9.27KB3.33KB▼ 64.08%