10% easysell

Code Review | EasySell

WordPress plugin EasySell scored10%from 54 tests.

About plugin

  • Plugin page: easysell
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.1-4.4.1
  • WordPress version: 6.3.1
  • First release: Jan 24, 2016
  • Latest release: Jan 25, 2016
  • Number of updates: 9
  • Update frequency: every 0.2 days
  • Top authors: spikersolns (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,310 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/easysell/easy-sell.php+11
    Constant WP_DEBUG already defined

Server metrics [RAM: ▼1.92MB] [CPU: ▼54.12ms] Passed 4 tests

A check of server-side resources used by EasySell
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.395.30 ▼34.12
Dashboard /wp-admin2.09 ▼1.255.03 ▼51.56
Posts /wp-admin/edit.php2.09 ▼1.265.82 ▼39.65
Add New Post /wp-admin/post-new.php2.09 ▼3.795.49 ▼91.15
Media Library /wp-admin/upload.php2.09 ▼1.135.50 ▼30.39
Easy Sell Settings /wp-admin/options-general.php?page=easy-sell-plugin2.105.51

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for EasySell
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.18 ▼1.021.87 ▼0.1039.45 ▼3.53
Dashboard /wp-admin2,210 ▲255.84 ▲0.8996.54 ▼11.8238.49 ▼1.79
Posts /wp-admin/edit.php2,090 ▲12.00 ▼0.0536.03 ▼2.0333.40 ▼4.41
Add New Post /wp-admin/post-new.php1,537 ▲2323.09 ▲5.48676.36 ▲20.0154.46 ▼5.06
Media Library /wp-admin/upload.php1,392 ▲44.36 ▲0.1497.15 ▼14.9245.74 ▼1.27
Easy Sell Settings /wp-admin/options-general.php?page=easy-sell-plugin7862.0422.3927.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/easysell/easy-sell.php+11
    Constant WP_DEBUG already defined
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=easy-sell-plugin
    • > Notice in wp-content/plugins/easysell/easy-sell.php+11
    Constant WP_DEBUG already defined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=easy-sell-plugin
    • > Notice in wp-includes/plugin.php+1004
    Undefined offset: 0
    • > GET request to /wp-admin/options-general.php?page=easy-sell-plugin
    • > Notice in wp-content/plugins/easysell/easy-sell.php+146
    Undefined variable: nostatus
    • > GET request to /wp-admin/options-general.php?page=easy-sell-plugin
    • > Notice in wp-content/plugins/easysell/easy-sell.php+147
    Undefined variable: yesstatus

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easysell/easy-sell.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can look at the official readme.txt

easysell/easy-sell.php 85% from 13 tests

Analyzing the main PHP file in "EasySell" version 1.0
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("easysell.php" instead of "easy-sell.php")
  • Description: The description should be shorter than 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin157 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1228157

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin