78% eewee-sellsy

Code Review | eewee sellsy

WordPress plugin eewee sellsy scored78%from 54 tests.

About plugin

  • Plugin page: eewee-sellsy
  • Plugin version: 1.14
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.9
  • WordPress version: 6.3.1
  • First release: Jan 20, 2017
  • Latest release: Mar 21, 2018
  • Number of updates: 75
  • Update frequency: every 5.6 days
  • Top authors: eewee (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,234 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
Installer ran successfully

Server metrics [RAM: ▼0.19MB] [CPU: ▼13.53ms] Passed 4 tests

Server-side resources used by eewee sellsy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.76 ▼40.29
Dashboard /wp-admin3.55 ▲0.2550.16 ▼0.92
Posts /wp-admin/edit.php3.61 ▲0.2550.92 ▼4.11
Add New Post /wp-admin/post-new.php6.07 ▲0.1995.67 ▼8.80
Media Library /wp-admin/upload.php3.42 ▲0.1942.98 ▲6.75
Contact /wp-admin/admin.php?page=idSousMenu23.4545.16
Settings /wp-admin/admin.php?page=idSousMenu33.4135.26
Ticket support /wp-admin/admin.php?page=idSousMenu13.4335.52
Sellsy /wp-admin/admin.php?page=idEeweeSellsy3.4435.11

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 67 new files
Database: 7 new tables, 6 new options
New tables
wp_eewee_sellsy_ticket_form
wp_eewee_sellsy_contact_form
wp_eewee_sellsy_contact
wp_eewee_sellsy_setting
wp_eewee_sellsy_error
wp_eewee_sellsy_ticket
wp_eewee_sellsy_version
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

eewee sellsy: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲19715.33 ▲0.957.62 ▲6.0448.89 ▲12.22
Dashboard /wp-admin2,268 ▲615.89 ▼0.04120.40 ▲9.3974.23 ▲27.44
Posts /wp-admin/edit.php2,147 ▲472.66 ▲0.6544.66 ▲2.2836.93 ▼1.76
Add New Post /wp-admin/post-new.php1,583 ▲5724.07 ▲6.49671.51 ▲71.2536.90 ▼11.26
Media Library /wp-admin/upload.php1,444 ▲415.11 ▲0.90105.88 ▲3.8574.43 ▲30.23
Contact /wp-admin/admin.php?page=idSousMenu21,5062.8132.2531.66
Settings /wp-admin/admin.php?page=idSousMenu31,0052.7131.3133.55
Ticket support /wp-admin/admin.php?page=idSousMenu18782.6630.9027.98
Sellsy /wp-admin/admin.php?page=idEeweeSellsy9742.6930.4941.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/eewee-sellsy/view/manuel.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/eewee-sellsy/tests/SellsyCustomFieldsControllerTest.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/eewee-sellsy/tests/ToolsControllerTest.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Screenshots: Add a description for screenshot #0 in eewee-sellsy/assets to your readme.txt
  • Screenshots: Screenshot #8 (Back-office : reCaptcha) image required
You can take inspiration from this readme.txt

eewee-sellsy/index.php 92% from 13 tests

The primary PHP file in "eewee sellsy" version 1.14 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("eewee-sellsy.php" instead of "index.php")

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
There were no executable files found in this plugin4,315 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
PHP396737873,945
PO File1186340246
CSS15529
JavaScript283828
XML10025
JSON10021
SQL23612
Markdown1409

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity13.78
▷ Minimum class complexity1.00
▷ Maximum class complexity109.00
Average method complexity4.03
▷ Minimum method complexity1.00
▷ Maximum method complexity87.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes27
▷ Abstract classes00.00%
▷ Concrete classes27100.00%
▷ Final classes00.00%
Methods114
▷ Static methods1513.16%
▷ Public methods11298.25%
▷ Protected methods00.00%
▷ Private methods21.75%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icones/logo.png1.28KB0.52KB▼ 59.41%
images/icones/logo-big.png37.50KB7.08KB▼ 81.11%
images/icones/download.png0.70KB0.79KB0.00%