84% spacious-toolkit

Code Review | Spacious Toolkit

WordPress plugin Spacious Toolkit scored84%from 54 tests.

About plugin

  • Plugin page: spacious-toolkit
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.9
  • WordPress version: 6.3.1
  • First release: Mar 2, 2018
  • Latest release: Mar 28, 2022
  • Number of updates: 9
  • Update frequency: every 166.0 days
  • Top authors: ThemeGrill (77.78%)themegrilldev (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /14,052 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼6.12ms] Passed 4 tests

A check of server-side resources used by Spacious Toolkit
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2345.61 ▲4.07
Dashboard /wp-admin3.58 ▲0.2454.92 ▼10.93
Posts /wp-admin/edit.php3.63 ▲0.2849.76 ▲2.31
Add New Post /wp-admin/post-new.php6.10 ▲0.2197.38 ▼16.11
Media Library /wp-admin/upload.php3.44 ▲0.2138.17 ▲0.27

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 62 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
spacious_toolkit_admin_notices
widget_theysaidso_widget
spacious_toolkit_version
spacious_toolkit_db_version
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Spacious Toolkit
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲4513.63 ▼0.372.22 ▲0.2043.35 ▲1.70
Dashboard /wp-admin2,237 ▲345.79 ▼0.09102.64 ▲2.2536.36 ▼2.49
Posts /wp-admin/edit.php2,116 ▲132.02 ▼0.0440.47 ▲0.3239.26 ▲4.72
Add New Post /wp-admin/post-new.php1,561 ▲1623.01 ▼0.12639.30 ▼46.6257.28 ▼9.70
Media Library /wp-admin/upload.php1,419 ▲194.25 ▼0.02106.63 ▼3.0946.33 ▼3.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • spacious_toolkit_db_version
    • can_compress_scripts
    • db_upgraded
    • spacious_toolkit_version
    • widget_recent-posts
    • spacious_toolkit_admin_notices
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/spacious-toolkit/includes/libraries/wp-background-process.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: spacious, theme, themegrill, toolkit

spacious-toolkit/spacious-toolkit.php Passed 13 tests

The main PHP script in "Spacious Toolkit" version 1.0.5 is automatically included on every request by WordPress
74 characters long description:
Spacious Toolkit is a companion for Spacious WordPress theme by ThemeGrill

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected6,098 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
JSON3003,524
PHP476401,9212,295
XML1255136
JavaScript11681109
SVG10032
CSS2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.76
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity1.69
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes17
▷ Abstract classes211.76%
▷ Concrete classes1588.24%
▷ Final classes16.67%
Methods144
▷ Static methods2618.06%
▷ Public methods9465.28%
▷ Protected methods4027.78%
▷ Private methods106.94%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin