Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.14MB] [CPU: ▲5.15ms] Passed 4 tests
Server-side resources used by TypeRocket UI
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.53 ▲1.06 | 53.78 ▲8.62 |
Dashboard /wp-admin | 4.72 ▲1.41 | 63.54 ▲12.22 |
Posts /wp-admin/edit.php | 4.50 ▲1.14 | 61.93 ▲7.87 |
Add New Post /wp-admin/post-new.php | 7.06 ▲1.17 | 96.17 ▼8.10 |
Media Library /wp-admin/upload.php | 4.43 ▲1.20 | 52.20 ▲15.51 |
Server storage [IO: ▲1.54MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 304 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TypeRocket UI
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲108 | 13.25 ▼1.29 | 1.92 ▲0.14 | 40.28 ▼2.55 |
Dashboard /wp-admin | 2,273 ▲99 | 5.86 ▲0.25 | 92.32 ▼6.03 | 80.94 ▲35.73 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.49 ▲0.34 | 43.29 ▲2.30 | 36.34 ▼2.45 |
Add New Post /wp-admin/post-new.php | 1,555 ▲27 | 18.04 ▼4.98 | 680.06 ▼17.12 | 75.16 ▲17.08 |
Media Library /wp-admin/upload.php | 1,421 ▲27 | 4.51 ▲0.35 | 117.80 ▲9.47 | 48.74 ▲7.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
Please take a closer look at the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/typerocket-ui/uninstall.php
- > /wp-content/plugins/typerocket-ui/meta-dashboard.php
- > /wp-content/plugins/typerocket-ui/typerocket-ui.php
- 162× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'TypeRocket\\Console\\Command' not found in wp-content/plugins/typerocket-ui/typerocket/vendor/typerocket/core/src/Console/Commands/MakeJob.php:11
- > PHP Fatal error
Uncaught Error: Class 'TypeRocket\\Http\\Middleware\\Middleware' not found in wp-content/plugins/typerocket-ui/typerocket/vendor/typerocket/core/src/Http/Middleware/CanManageCategories.php:14
- > PHP Fatal error
Uncaught Error: Class 'TypeRocket\\Controllers\\Controller' not found in wp-content/plugins/typerocket-ui/typerocket/vendor/typerocket/core/src/Controllers/WPTermController.php:11
- > PHP Fatal error
Uncaught Error: Class 'TypeRocket\\Database\\Connectors\\DatabaseConnector' not found in wp-content/plugins/typerocket-ui/typerocket/vendor/typerocket/core/src/Database/Connectors/WordPressCoreDatabaseConnector.php:5
- > PHP Warning
Use of undefined constant TYPEROCKET_PATH - assumed 'TYPEROCKET_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/typerocket-ui/typerocket/config/paths.php on line 103
- > PHP Fatal error
Uncaught Error: Class 'TypeRocket\\Http\\Middleware\\Middleware' not found in wp-content/plugins/typerocket-ui/typerocket/vendor/typerocket/core/src/Http/Middleware/CanManageOptions.php:14
- > PHP Fatal error
Uncaught Error: Class 'TypeRocket\\Http\\Request' not found in wp-content/plugins/typerocket-ui/typerocket/vendor/typerocket/core/src/Http/CustomRequest.php:4
- > PHP Fatal error
Uncaught Error: Class 'TypeRocket\\Register\\Registrable' not found in wp-content/plugins/typerocket-ui/typerocket/vendor/typerocket/core/src/Register/Page.php:14
- > PHP Notice
Undefined variable: form in wp-content/plugins/typerocket-ui/typerocket/vendor/typerocket/core/src/Extensions/views/typerocket-ui.php on line 5
- > PHP Fatal error
Uncaught Error: Interface 'TypeRocket\\Interfaces\\Formable' not found in wp-content/plugins/typerocket-ui/typerocket/vendor/typerocket/core/src/Database/Results.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
typerocket-ui/typerocket-ui.php 92% from 13 tests
"TypeRocket UI" version 5.0.11'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:
- Requires PHP: Required version must match the one declared in readme.txt ("7.4.0" instead of "7.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected25,483 lines of code in 295 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 284 | 5,711 | 12,994 | 22,631 |
JSON | 4 | 0 | 0 | 2,828 |
JavaScript | 6 | 11 | 32 | 23 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 11.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 41 | |
Interfaces | 8 | |
Traits | 26 | |
Classes | 234 | |
▷ Abstract classes | 12 | 5.13% |
▷ Concrete classes | 222 | 94.87% |
▷ Final classes | 0 | 0.00% |
Methods | 1,927 | |
▷ Static methods | 218 | 11.31% |
▷ Public methods | 1,730 | 89.78% |
▷ Protected methods | 193 | 10.02% |
▷ Private methods | 4 | 0.21% |
Functions | 163 | |
▷ Named functions | 6 | 3.68% |
▷ Anonymous functions | 157 | 96.32% |
Constants | 74 | |
▷ Global constants | 18 | 24.32% |
▷ Class constants | 56 | 75.68% |
▷ Public constants | 56 | 100.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
3 compressed PNG files occupy 0.15MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
typerocket/wordpress/assets/typerocket/img/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
typerocket/wordpress/assets/typerocket/img/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
screenshot-1.png | 154.28KB | 84.93KB | ▼ 44.95% |