Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.76MB] [CPU: ▼1.43ms] Passed 4 tests
A check of server-side resources used by Long Toolkit
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.34 | 44.33 ▲1.10 |
Dashboard /wp-admin | 4.26 ▲0.95 | 48.72 ▲0.22 |
Posts /wp-admin/edit.php | 4.31 ▲0.95 | 47.89 ▲1.59 |
Add New Post /wp-admin/post-new.php | 6.78 ▲0.88 | 84.03 ▼8.62 |
Media Library /wp-admin/upload.php | 4.12 ▲0.88 | 38.52 ▲6.20 |
Server storage [IO: ▲3.74MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 139 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Long Toolkit
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.45 ▼0.11 | 1.66 ▼0.39 | 42.89 ▼2.00 |
Dashboard /wp-admin | 2,195 ▲21 | 5.59 ▲0.06 | 83.63 ▼13.36 | 39.86 ▼5.45 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.01 | 35.15 ▲0.35 | 33.57 ▼3.73 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.16 ▲0.13 | 675.77 ▼8.57 | 49.90 ▼11.77 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▲0.03 | 95.73 ▼15.60 | 41.33 ▼5.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 11× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/long-toolkit/includes/admin-fields/field_icon_picker.php
- > /wp-content/plugins/long-toolkit/addons/importer/importer.php
- > /wp-content/plugins/long-toolkit/includes/admin-fields/field_default.php
- > /wp-content/plugins/long-toolkit/includes/admin-fields/field_image_picker.php
- > /wp-content/plugins/long-toolkit/includes/admin-fields/field_autocomplete.php
- > /wp-content/plugins/long-toolkit/includes/admin-fields/field_map.php
- > /wp-content/plugins/long-toolkit/includes/admin-fields/field_datetime.php
- > /wp-content/plugins/long-toolkit/includes/admin-fields/field_image_select.php
- > /wp-content/plugins/long-toolkit/includes/admin-fields/field_repeater.php
- > /wp-content/plugins/long-toolkit/includes/admin-fields/field_color_picker.php
- 30× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/long-toolkit/sample/post-meta.php:584
- > PHP Warning
Use of undefined constant LONG_TOOLKIT_DIR - assumed 'LONG_TOOLKIT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/long-toolkit/sample/sample.php on line 15
- > PHP Warning
include(): Failed opening 'LONG_TOOLKIT_DIRsample/menu.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/long-toolkit/sample/sample.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/long-toolkit/sample/taxonomy.php:261
- > PHP Warning
include(LONG_TOOLKIT_DIRsample/post-meta.php): failed to open stream: No such file or directory in wp-content/plugins/long-toolkit/sample/sample.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/long-toolkit/sample/customizer.php:365
- > PHP Warning
require_once(ABSPATHwp-includes/class-wp-customize-setting.php): failed to open stream: No such file or directory in wp-content/plugins/long-toolkit/addons/importer/includes/class-importer-customize-setting.php on line 5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/long-toolkit/addons/importer/includes/class-importer-customize-setting.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/long-toolkit/addons/importer/templates/available.php:12
- > PHP Warning
include(LONG_TOOLKIT_DIRsample/widget.php): failed to open stream: No such file or directory in wp-content/plugins/long-toolkit/sample/sample.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Some available dummy-data options), #2 (Manually import), #3 (Metabox field), #4 (Customizer fields), #5 (Taxonomy fields), #6 (Widget fields)
long-toolkit/long-toolkit.php Passed 13 tests
The primary PHP file in "Long Toolkit" version 2.5 is used by WordPress to initiate all plugin functionality
98 characters long description:
Create Admin fields, metabox, widget, taxonomy, menu meta, customizer fields quickly and friendly.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected40,574 lines of code in 103 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 2 | 305 | 39 | 15,640 |
JavaScript | 21 | 1,686 | 1,660 | 8,441 |
PHP | 49 | 1,654 | 2,237 | 6,848 |
CSS | 19 | 263 | 212 | 5,169 |
SVG | 2 | 0 | 0 | 2,690 |
Sass | 10 | 161 | 0 | 1,786 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 23.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 193.00 |
Average method complexity | 4.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 1 | 3.03% |
▷ Concrete classes | 32 | 96.97% |
▷ Final classes | 2 | 6.25% |
Methods | 189 | |
▷ Static methods | 24 | 12.70% |
▷ Public methods | 163 | 86.24% |
▷ Protected methods | 3 | 1.59% |
▷ Private methods | 23 | 12.17% |
Functions | 46 | |
▷ Named functions | 43 | 93.48% |
▷ Anonymous functions | 3 | 6.52% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.19MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
addons/importer/dummy-data/theme-unit-test/screenshot.png | 86.19KB | 37.39KB | ▼ 56.61% |
addons/importer/assets/img/no-image-preview.png | 8.33KB | 1.87KB | ▼ 77.51% |
assets/images/add.png | 0.13KB | 0.11KB | ▼ 17.91% |
assets/images/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
addons/importer/dummy-data/woocommerce/screenshot.png | 93.82KB | 55.26KB | ▼ 41.10% |