Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/tsp-easy-dev/TSP_Easy_Dev.autoload.php+26
Constant TSP_EASY_DEV_PATH already defined
Server metrics [RAM: ▼1.88MB] [CPU: ▼52.76ms] Passed 4 tests
Analyzing server-side resources used by LAPDI Easy Dev
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 4.90 ▼38.87 |
Dashboard /wp-admin | 2.12 ▼1.18 | 5.56 ▼43.26 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 5.60 ▼42.60 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 5.91 ▼86.30 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 6.52 ▼27.73 |
LAPDI Plugins /wp-admin/admin.php?page=tsp_plugins | 2.13 | 5.27 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 101 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for LAPDI Easy Dev
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲79 | 14.71 ▲0.13 | 1.90 ▼0.20 | 44.15 ▼0.99 |
Dashboard /wp-admin | 2,206 ▲29 | 5.54 ▼0.06 | 88.51 ▼11.72 | 77.77 ▲34.11 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 1.98 ▼0.02 | 38.01 ▲1.28 | 34.51 ▼1.50 |
Add New Post /wp-admin/post-new.php | 1,557 ▲12 | 23.27 ▲0.24 | 756.86 ▲93.92 | 64.31 ▲7.93 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.22 ▼0.10 | 105.60 ▲0.97 | 47.51 ▲3.86 |
Easy Dev /wp-admin/tsp-easy-dev.php | 26 | 0.44 | 0.09 | 15.79 |
LAPDI Plugins /wp-admin/admin.php?page=tsp_plugins | 992 | 1.99 | 37.01 | 65.23 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/tsp-easy-dev/TSP_Easy_Dev.autoload.php+26
Constant TSP_EASY_DEV_PATH already defined
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=tsp_plugins
- > Notice in wp-content/plugins/tsp-easy-dev/TSP_Easy_Dev.autoload.php+26
Constant TSP_EASY_DEV_PATH already defined
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
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/tsp-easy-dev/vendor/phpmailer/phpmailer/get_oauth_token.php
- > /wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/demo/index.php
- 95× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_Compile_Shared_Inheritance' not found in wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_block.php:16
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_Method_CompileAllTemplates' not found in wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_compileallconfig.php:12
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_Method_LoadFilter' not found in wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unloadfilter.php:12
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_CompileBase' not found in wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_shared_inheritance.php:17
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_Method_RegisterFilter' not found in wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_unregisterfilter.php:12
- > PHP Fatal error
Uncaught Error: Class 'Smarty_CacheResource_Custom' not found in wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/demo/plugins/cacheresource.mysql.php:25
- > PHP Fatal error
Uncaught Error: Class 'Smarty_CacheResource_Custom' not found in wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/demo/plugins/cacheresource.pdo.php:30
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_CompileBase' not found in wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/libs/sysplugins/smarty_internal_compile_ldelim.php:17
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Resource_Custom' not found in wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/demo/plugins/resource.mysql.php:22
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_ParseTree' not found in wp-content/plugins/tsp-easy-dev/vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_tag.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/tsp-easy-dev.php
- > Network (severe)
wp-admin/tsp-easy-dev.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=tsp_plugins
- > Network (severe)
wp-content/plugins/tsp-easy-dev/vendor/twbs/bootstrap/dist/css/bootstrap-theme.min.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
tsp-easy-dev/tsp-easy-dev.php 85% from 13 tests
"LAPDI Easy Dev" version 2.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 297 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Please fix the following items
- Do not distribute dangerous files with your plugin
- .ps1 - Windows PowerShell Cmdlet in Windows
- ☣ wp-content/plugins/tsp-easy-dev/vendor/twbs/bootstrap/nuget/MyGet.ps1
- .ps1 - Windows PowerShell Cmdlet in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 517 | 8,949 | 6,096 | 77,771 |
PHP | 301 | 3,052 | 18,392 | 29,303 |
JavaScript | 83 | 4,529 | 2,849 | 19,709 |
CSS | 40 | 1,390 | 225 | 17,991 |
LESS | 201 | 3,628 | 2,901 | 17,867 |
Markdown | 87 | 3,673 | 0 | 15,350 |
JSON | 22 | 10 | 0 | 14,335 |
Sass | 143 | 2,622 | 1,248 | 11,643 |
YAML | 14 | 1,200 | 9 | 8,916 |
SVG | 15 | 0 | 0 | 3,749 |
yacc | 2 | 253 | 382 | 988 |
Smarty | 9 | 60 | 3 | 611 |
Ruby | 3 | 56 | 22 | 147 |
XML | 3 | 2 | 0 | 75 |
make | 2 | 22 | 1 | 53 |
Bourne Shell | 1 | 11 | 17 | 42 |
PowerShell | 1 | 4 | 5 | 9 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 135)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 18.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 479.00 |
Average method complexity | 4.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 135.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 222 | |
▷ Abstract classes | 15 | 6.76% |
▷ Concrete classes | 207 | 93.24% |
▷ Final classes | 3 | 1.45% |
Methods | 1,296 | |
▷ Static methods | 94 | 7.25% |
▷ Public methods | 1,174 | 90.59% |
▷ Protected methods | 88 | 6.79% |
▷ Private methods | 34 | 2.62% |
Functions | 62 | |
▷ Named functions | 60 | 96.77% |
▷ Anonymous functions | 2 | 3.23% |
Constants | 252 | |
▷ Global constants | 48 | 19.05% |
▷ Class constants | 204 | 80.95% |
▷ Public constants | 204 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
74 compressed PNG files occupy 0.99MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/twbs/bootstrap/site/docs/4.1/examples/screenshots/checkout.png | 27.52KB | 29.41KB | 0.00% |
vendor/twbs/bootstrap/site/docs/4.1/examples/screenshots/product.png | 27.30KB | 29.57KB | 0.00% |
vendor/twbs/bootstrap/site/docs/4.1/examples/screenshots/pricing.png | 28.45KB | 31.26KB | 0.00% |
vendor/twbs/bootstrap/site/docs/4.1/examples/screenshots/navbar-static.png | 14.54KB | 15.84KB | 0.00% |
vendor/twbs/bootstrap/site/docs/4.1/examples/screenshots/album.png | 25.75KB | 28.24KB | 0.00% |