84% skeerel

Code Review | Skeerel - Achat Express

WordPress plugin Skeerel - Achat Express scored84%from 54 tests.

About plugin

  • Plugin page: skeerel
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-5.4
  • WordPress version: 6.3.1
  • First release: Jan 27, 2020
  • Latest release: Apr 13, 2020
  • Number of updates: 18
  • Update frequency: every 11.5 days
  • Top authors: arcansecurity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /702 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.53MB] [CPU: ▼15.19ms] Passed 4 tests

This is a short check of server-side resources used by Skeerel - Achat Express
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.94 ▼3.12
Dashboard /wp-admin3.43 ▲0.1253.64 ▼0.19
Posts /wp-admin/edit.php3.54 ▲0.1852.73 ▲4.48
Add New Post /wp-admin/post-new.php3.47 ▼2.4141.41 ▼61.93
Media Library /wp-admin/upload.php3.35 ▲0.1240.37 ▲7.25

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 112 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Skeerel - Achat Express
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲7613.38 ▼1.052.22 ▲0.1745.31 ▼0.98
Dashboard /wp-admin2,269 ▲665.80 ▼0.06108.15 ▼18.9543.66 ▼2.14
Posts /wp-admin/edit.php2,150 ▲472.03 ▲0.0341.84 ▲1.9337.17 ▲1.16
Add New Post /wp-admin/post-new.php1,562 ▲2223.15 ▼0.14614.70 ▼33.3063.00 ▼5.56
Media Library /wp-admin/upload.php1,444 ▲474.29 ▲0.03110.29 ▲3.8246.44 ▼1.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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 take a closer look at the following
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/skeerel/templates/skeerel_button_product_page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/skeerel/templates/skeerel_encart_checkout.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Skeerel\\Util\\Enum' not found in wp-content/plugins/skeerel/vendor/arcansecurity/skeerel-php/Skeerel/Data/Delivery/Color.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Skeerel\\Util\\Enum' not found in wp-content/plugins/skeerel/vendor/arcansecurity/skeerel-php/Skeerel/Data/Payment/Currency.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Skeerel\\Util\\Enum' not found in wp-content/plugins/skeerel/vendor/arcansecurity/skeerel-php/Skeerel/Data/Website/Status.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Skeerel\\Data\\Address\\BaseAddress' not found in wp-content/plugins/skeerel/vendor/arcansecurity/skeerel-php/Skeerel/Data/Address/IndividualAddress.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Skeerel\\Util\\Enum' not found in wp-content/plugins/skeerel/vendor/arcansecurity/skeerel-php/Skeerel/Data/Delivery/Type.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/skeerel/api/Skeerel_Custom_Route.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Skeerel\\Util\\Enum' not found in wp-content/plugins/skeerel/vendor/arcansecurity/skeerel-php/Skeerel/Data/Payment/Status.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Skeerel\\Data\\Address\\BaseAddress' not found in wp-content/plugins/skeerel/vendor/arcansecurity/skeerel-php/Skeerel/Data/Address/CompanyAddress.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5, #6, #7, #8 in skeerel/assets to your readme.txt
The official readme.txt is a good inspiration

skeerel/skeerel.php 92% from 13 tests

"Skeerel - Achat Express" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Requires at least: Required version must match the one declared in readme.txt ("5.2" instead of "3.5.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin21,533 lines of code in 85 files:
LanguageFilesBlank linesComment linesLines of code
SVG50128,983
CSS183,570698,001
PHP541,1751,6043,827
PO File184106255
Markdown1670211
JavaScript32517166
JSON30090

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity12.25
▷ Minimum class complexity1.00
▷ Maximum class complexity62.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes36
▷ Abstract classes25.56%
▷ Concrete classes3494.44%
▷ Final classes00.00%
Methods237
▷ Static methods2711.39%
▷ Public methods22394.09%
▷ Protected methods10.42%
▷ Private methods135.49%
Functions41
▷ Named functions3585.37%
▷ Anonymous functions614.63%
Constants24
▷ Global constants00.00%
▷ Class constants24100.00%
▷ Public constants24100.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.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/logo.png14.35KB4.21KB▼ 70.66%
public/images/skeerel-logo.png0.64KB0.65KB0.00%
public/images/skeerel_white.png0.49KB0.52KB0.00%