Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.46MB] [CPU: ▼17.31ms] Passed 4 tests
A check of server-side resources used by GearGag Toolkit
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 40.99 ▲1.61 |
Dashboard /wp-admin | 3.58 ▲0.23 | 50.77 ▼10.53 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 46.11 ▼0.45 |
Add New Post /wp-admin/post-new.php | 3.40 ▼2.48 | 36.67 ▼59.87 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 36.94 ▲3.85 |
Batch Delete /wp-admin/edit.php?post_type=product&page=batch_delete_products | 3.28 | 24.31 |
Server storage [IO: ▲0.09MB] [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: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
GearGag Toolkit: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲46 | 14.35 ▲0.00 | 1.70 ▲0.14 | 44.00 ▲2.73 |
Dashboard /wp-admin | 2,201 ▲24 | 5.62 ▼0.05 | 91.07 ▲1.71 | 43.94 ▼0.65 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.98 ▲0.03 | 33.60 ▼7.01 | 35.09 ▼0.28 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.38 ▲0.60 | 653.33 ▲18.50 | 54.92 ▼5.84 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▲0.03 | 92.92 ▼4.44 | 41.58 ▲0.26 |
Batch Delete /wp-admin/edit.php?post_type=product&page=batch_delete_products | 28 | 0.42 | 0.09 | 3.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Interface 'GearGag_Toolkit\\tools\\contracts\\Bootable' not found in wp-content/plugins/geargag-toolkit/Woo_Gallery.php:7
- > PHP Fatal error
Uncaught Error: Interface 'GearGag_Toolkit\\tools\\contracts\\Bootable' not found in wp-content/plugins/geargag-toolkit/tools/contracts/Enqueueable.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=product&page=batch_delete_products
- > Network (severe)
wp-admin/edit.php?post_type=product&page=batch_delete_products - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Requires at least: Invalid version format
- Tested up to: Invalid version format
geargag-toolkit/index.php 92% from 13 tests
Analyzing the main PHP file in "GearGag Toolkit" version 2.5.0
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("geargag-toolkit.php" instead of "index.php")
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
Everything looks great! No dangerous files found in this plugin2,367 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 471 | 317 | 2,355 |
JSON | 2 | 0 | 0 | 12 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 2 | 11.11% |
▷ Concrete classes | 16 | 88.89% |
▷ Final classes | 1 | 6.25% |
Methods | 110 | |
▷ Static methods | 15 | 13.64% |
▷ Public methods | 103 | 93.64% |
▷ Protected methods | 3 | 2.73% |
▷ Private methods | 4 | 3.64% |
Functions | 13 | |
▷ Named functions | 11 | 84.62% |
▷ Anonymous functions | 2 | 15.38% |
Constants | 18 | |
▷ Global constants | 12 | 66.67% |
▷ Class constants | 6 | 33.33% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin