89% arqspin-woocommerce-extension

Code Review | Arqspin WooCommerce Extension

WordPress plugin Arqspin WooCommerce Extension scored89%from 54 tests.

About plugin

  • Plugin page: arqspin-woocommer...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 29, 2015
  • Latest release: Apr 20, 2016
  • Number of updates: 11
  • Update frequency: every 15.8 days
  • Top authors: looneyArqspin (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,229 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.48ms] Passed 4 tests

This is a short check of server-side resources used by Arqspin WooCommerce Extension
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.93 ▲5.22
Dashboard /wp-admin3.31 ▼0.0444.46 ▼15.46
Posts /wp-admin/edit.php3.36 ▲0.0045.20 ▼1.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.02 ▼9.86
Media Library /wp-admin/upload.php3.23 ▲0.0034.85 ▲4.60

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Arqspin WooCommerce Extension
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▲0.141.95 ▲0.3445.54 ▲4.36
Dashboard /wp-admin2,195 ▲155.58 ▲0.0180.58 ▼7.0538.54 ▼1.43
Posts /wp-admin/edit.php2,100 ▲182.00 ▼0.1333.47 ▼2.6634.83 ▼2.44
Add New Post /wp-admin/post-new.php1,526 ▼023.08 ▼0.63679.86 ▲17.2052.55 ▼5.80
Media Library /wp-admin/upload.php1,403 ▼04.14 ▼0.0292.47 ▼4.3744.17 ▲0.16

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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 issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === arqspin-woocommerce-extension === )
The official readme.txt might help

arqspin-woocommerce-extension/arqspin-woocommerce-extension.php 85% from 13 tests

The main PHP script in "Arqspin WooCommerce Extension" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected135 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12523135

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected