Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼10.17ms] Passed 4 tests
A check of server-side resources used by WPSPX Basket
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.89 ▲0.25 |
Dashboard /wp-admin | 3.32 ▼0.03 | 43.40 ▼16.80 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.27 ▼0.67 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 80.39 ▼18.49 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.54 ▼4.70 |
Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WPSPX Basket
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲142 | 14.41 ▼0.19 | 2.79 ▲0.99 | 55.78 ▲13.33 |
Dashboard /wp-admin | 2,214 ▲37 | 5.77 ▲0.10 | 88.04 ▼10.20 | 38.90 ▼7.67 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.30 ▲0.27 | 34.57 ▼1.68 | 29.00 ▼6.46 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.24 ▲0.13 | 646.13 ▲40.88 | 36.34 ▼17.99 |
Media Library /wp-admin/upload.php | 1,419 ▲16 | 4.39 ▲0.21 | 108.22 ▲8.02 | 44.91 ▲0.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wpspx-basket/lib/helpers/options-page.php
- > /wp-content/plugins/wpspx-basket/settings.php
- > /wp-content/plugins/wpspx-basket/wp-spektrix-basket.php
- > /wp-content/plugins/wpspx-basket/lib/helpers/misc.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Contributors: Contributors not specified
wpspx-basket/wp-spektrix-basket.php 85% from 13 tests
"WPSPX Basket" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpspx-basket.php" instead of "wp-spektrix-basket.php")
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin483 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 1 | 44 | 14 | 184 |
PHP | 4 | 52 | 31 | 169 |
JavaScript | 4 | 34 | 61 | 121 |
SVG | 3 | 0 | 0 | 8 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 1 | 50.00% |
▷ Public methods | 1 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 50.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin