78% eclear-spot

Code Review | SPOT® – Permanent Transaction Control

WordPress plugin SPOT® – Permanent Transaction Control scored78%from 54 tests.

About plugin

  • Plugin page: eclear-spot
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 24, 2023
  • Latest release: Jan 27, 2023
  • Number of updates: 4
  • Update frequency: every 1.8 days
  • Top authors: inspirelabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /447 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.64MB] [CPU: ▼2.99ms] Passed 4 tests

An overview of server-side resources used by SPOT® – Permanent Transaction Control
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.12 ▲0.6642.12 ▲2.10
Dashboard /wp-admin3.95 ▲0.6148.30 ▼9.42
Posts /wp-admin/edit.php4.01 ▲0.6553.27 ▲7.55
Add New Post /wp-admin/post-new.php6.56 ▲0.6792.01 ▼7.97
Media Library /wp-admin/upload.php3.88 ▲0.6541.47 ▲3.32

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 282 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by SPOT® – Permanent Transaction Control
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲15813.79 ▼0.937.30 ▲5.7237.91 ▼2.75
Dashboard /wp-admin2,202 ▲225.64 ▼0.01103.85 ▲16.9051.29 ▲12.29
Posts /wp-admin/edit.php2,107 ▲72.01 ▼0.0145.60 ▲11.0337.02 ▲3.03
Add New Post /wp-admin/post-new.php1,544 ▲1618.35 ▼4.68622.52 ▼1.4677.82 ▲27.73
Media Library /wp-admin/upload.php1,407 ▲104.19 ▲0.0198.94 ▼2.6142.65 ▼2.13

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% 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 0% from 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
Please fix the following
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/eclear-spot/vendor/ilabs/ilabs-plugin/src/Templates/Woocommerce/Metabox_form_group_footer.php
    • > /wp-content/plugins/eclear-spot/Templates/desc.php
    • > /wp-content/plugins/eclear-spot/vendor/ilabs/ilabs-plugin/src/Templates/Woocommerce/Metabox_footer.php
  • 117× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Isolated\\Eclear_Spot\\Ilabs\\Ilabs_Plugin\\Event_Chain\\Abstracts\\Abstract_Event' not found in wp-content/plugins/eclear-spot/vendor/ilabs/ilabs-plugin/src/Event_Chain/Event/Wp_Init.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Isolated\\Eclear_Spot\\Isolated_Guzzlehttp\\Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/eclear-spot/vendor/ilabs/isolated-guzzlehttp/vendor/guzzlehttp/psr7/src/Request.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Isolated\\Eclear_Spot\\Ilabs\\Ilabs_Plugin\\Event_Chain\\Abstracts\\Abstract_Event' not found in wp-content/plugins/eclear-spot/vendor/ilabs/ilabs-plugin/src/Event_Chain/Event/Wp_Cron_Every_N_Minutes.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Isolated\\Eclear_Spot\\Ilabs\\Ilabs_Plugin\\Event_Chain\\Abstracts\\Abstract_Action' not found in wp-content/plugins/eclear-spot/vendor/ilabs/ilabs-plugin/src/Presentation/Woocommerce/Event_Chain/Actions/Action_Wc_render_Metabox.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Isolated\\Eclear_Spot\\Isolated_Guzzlehttp\\GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/eclear-spot/vendor/ilabs/isolated-guzzlehttp/vendor/guzzlehttp/promises/src/AggregateException.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Isolated\\Eclear_Spot\\Isolated_Guzzlehttp\\GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/eclear-spot/vendor/ilabs/isolated-guzzlehttp/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Isolated\\Eclear_Spot\\Isolated_Guzzlehttp\\GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/eclear-spot/vendor/ilabs/isolated-guzzlehttp/vendor/guzzlehttp/promises/src/FulfilledPromise.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Isolated\\Eclear_Spot\\Ilabs\\Ilabs_Plugin\\Event_Chain\\Interfaces\\Event_Interface' not found in wp-content/plugins/eclear-spot/vendor/ilabs/ilabs-plugin/src/Event_Chain/Abstracts/Abstract_Event.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Isolated\\Eclear_Spot\\Ilabs\\Ilabs_Plugin\\Presentation\\Form\\Abstract_Group_Walker' not found in wp-content/plugins/eclear-spot/vendor/ilabs/ilabs-plugin/src/Presentation/Form/Request_Group_Extractor.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Isolated\\Eclear_Spot\\Ilabs\\Ilabs_Plugin\\Event_Chain\\Interfaces\\Cache_Interface' not found in wp-content/plugins/eclear-spot/vendor/ilabs/ilabs-plugin/src/Event_Chain/Wc_Session_Cache.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Contributors: Contributors not specified
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt is a good inspiration

eclear-spot/eclear-spot.php 92% from 13 tests

This is the main PHP file of "SPOT® – Permanent Transaction Control" version 1.0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 153 characters long)

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
Good job! No executable or dangerous file extensions detected14,205 lines of code in 270 files:
LanguageFilesBlank linesComment linesLines of code
PHP2659187,99313,476
JSON300667
PO File119056
CSS1106

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity8.28
▷ Minimum class complexity1.00
▷ Maximum class complexity88.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces40
Interfaces51
Traits9
Classes177
▷ Abstract classes63.39%
▷ Concrete classes17196.61%
▷ Final classes3520.47%
Methods1,407
▷ Static methods18813.36%
▷ Public methods1,22987.35%
▷ Protected methods332.35%
▷ Private methods14510.31%
Functions168
▷ Named functions3722.02%
▷ Anonymous functions13177.98%
Constants78
▷ Global constants00.00%
▷ Class constants78100.00%
▷ Public constants6785.90%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin