83% zeroone

Code Review | Keysender eCommerce Digital Product Distribution

WordPress plugin Keysender eCommerce Digital Product Distribution scored 83% from 54 tests.

About plugin

  • Plugin page: zeroone
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9.2
  • WordPress version: 6.3.1
  • First release: Mar 31, 2022
  • Latest release: Sep 22, 2023
  • Number of updates: 32
  • Update frequency: every 17.2 days
  • Top authors: zerooneecommerce (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,490 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
The plugin installed gracefully, with no errors

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

Server-side resources used by Keysender eCommerce Digital Product Distribution
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.53 ▲0.14
Dashboard /wp-admin3.37 ▲0.0745.96 ▼1.24
Posts /wp-admin/edit.php3.48 ▲0.1348.86 ▼0.35
Add New Post /wp-admin/post-new.php5.95 ▲0.0799.58 ▲1.33
Media Library /wp-admin/upload.php3.29 ▲0.0741.61 ▲9.83
Keysender /wp-admin/admin.php?page=keysenderec-ecommerce-welcome3.2631.43

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
keysenderec_option_welcome
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Keysender eCommerce Digital Product Distribution
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲11313.20 ▼1.204.49 ▲2.4937.51 ▼9.69
Dashboard /wp-admin2,232 ▲444.90 ▼0.1397.68 ▼22.4369.59 ▲31.41
Posts /wp-admin/edit.php2,108 ▲191.98 ▼0.0239.45 ▲4.5436.64 ▲0.08
Add New Post /wp-admin/post-new.php1,688 ▲16922.16 ▼1.09722.32 ▲57.8147.63 ▼11.78
Media Library /wp-admin/upload.php1,408 ▲264.25 ▲0.05100.63 ▲2.2681.31 ▲36.79
Keysender /wp-admin/admin.php?page=keysenderec-ecommerce-welcome8202.0022.4923.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/zeroone/uninstall.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • License uri: Please fix this invalid url: ""
Please take inspiration from this readme.txt

zeroone/keysender-ecommerce.php 77% from 13 tests

"Keysender eCommerce Digital Product Distribution" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("zeroone.php" instead of "keysender-ecommerce.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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 detected446 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP54612250
CSS100122
JavaScript18070
SVG1004

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods14.76%
▷ Public methods1571.43%
▷ Protected methods00.00%
▷ Private methods628.57%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
7 PNG files occupy 0.25MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-128x128.png1.31KB1.31KB0.00%
screenshot-1.png49.72KB26.49KB▼ 46.71%
images/Screenshot-2.png72.55KB31.60KB▼ 56.45%
screenshot-2.png72.55KB31.60KB▼ 56.45%
images/Screenshot-1.png49.72KB26.49KB▼ 46.71%