Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼1.16MB] [CPU: ▼40.19ms] Passed 4 tests
A check of server-side resources used by Caspio Deployment Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.81 ▼0.65 | 12.91 ▼27.14 |
Dashboard /wp-admin | 2.85 ▼0.46 | 15.37 ▼35.29 |
Posts /wp-admin/edit.php | 2.85 ▼0.51 | 16.64 ▼26.11 |
Add New Post /wp-admin/post-new.php | 2.85 ▼3.04 | 17.36 ▼72.20 |
Media Library /wp-admin/upload.php | 2.85 ▼0.38 | 16.21 ▼19.62 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Caspio Deployment Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.22 ▼1.08 | 1.54 ▼0.23 | 39.48 ▼9.89 |
Dashboard /wp-admin | 2,206 ▲18 | 5.91 ▼0.00 | 113.17 ▼0.78 | 44.37 ▼3.53 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.02 ▲0.02 | 39.47 ▲2.41 | 35.37 ▲2.24 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.44 ▼4.71 | 601.27 ▼93.74 | 50.01 ▼8.58 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▼0.09 | 96.94 ▼30.10 | 41.93 ▼7.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/caspio-deploy2/classes/class-datapage-loader.php+4
Undefined variable: _SESSION
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/caspio-deploy2/classes/class-datapage-loader.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/caspio-deploy2/caspio-deployment2.php:10
- > PHP Fatal error
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 87% 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 need to be fixed:
- Requires at least: Version format is invalid
- Tested up to: Version format is invalid
caspio-deploy2/caspio-deployment2.php 85% from 13 tests
"Caspio Deployment Plugin" version 1.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("caspio-deploy2.php" instead of "caspio-deployment2.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)
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
There were no executable files found in this plugin482 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 62 | 48 | 482 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.66 |
Average class complexity | 77.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 9.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 2 | 11.11% |
▷ Public methods | 5 | 27.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 72.22% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 1 | 16.67% |
▷ Class constants | 5 | 83.33% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected