Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.18ms] Passed 4 tests
Server-side resources used by Torque - Optimise the transport of your Website
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.36 ▼5.76 |
Dashboard /wp-admin | 3.31 ▼0.04 | 50.15 ▼6.90 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.37 ▼4.42 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.36 ▼7.65 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.99 ▲4.94 |
Server storage [IO: ▲0.30MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Torque - Optimise the transport of your Website: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.22 ▼0.38 | 1.61 ▼0.11 | 40.46 ▼5.77 |
Dashboard /wp-admin | 2,198 ▲24 | 5.62 ▼0.06 | 87.11 ▼12.79 | 39.81 ▼9.38 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.95 ▼0.07 | 35.74 ▼0.91 | 31.56 ▼3.54 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 18.06 ▼5.21 | 677.55 ▲47.65 | 107.82 ▲48.23 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.18 ▼0.03 | 108.63 ▼10.69 | 48.65 ▼1.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 18× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'hexydec\\html\\token' not found in wp-content/plugins/torque/packages/htmldoc/tokens/doctype.php:6
- > PHP Parse error
syntax error, unexpected '|', expecting ';' or '{' in wp-content/plugins/torque/packages/htmldoc/htmldoc.php on line 189
- > PHP Fatal error
Uncaught Error: Class 'hexydec\\jslite\\operator' not found in wp-content/plugins/torque/packages/jslite/tokens/increment.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/torque/torque.php:23
- > PHP Parse error
syntax error, unexpected '|', expecting ';' or '{' in wp-content/plugins/torque/assets.php on line 316
- > PHP Fatal error
Uncaught Error: Class 'hexydec\\torque\\config' not found in wp-content/plugins/torque/app.php:9
- > PHP Fatal error
Uncaught Error: Interface 'hexydec\\html\\token' not found in wp-content/plugins/torque/packages/htmldoc/tokens/custom.php:6
- > PHP Notice
Undefined variable: violations in wp-content/plugins/torque/templates/csp-recommendations.php on line 25
- > PHP Warning
filesize(): stat failed for wp-content/uploads/torque/csp-reports.json in /var/www/wordpress/wp-content/plugins/torque/report.php on line 6
- > PHP Fatal error
Uncaught Error: Interface 'hexydec\\html\\token' not found in wp-content/plugins/torque/packages/htmldoc/tokens/comment.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Requires at least: Version format is invalid
- Screenshots: A description for screenshot #9 is required in torque/assets to your readme.txt
torque/torque.php 92% from 13 tests
The main file in "Torque - Optimise the transport of your Website" v. 0.7.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 329 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin5,819 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 46 | 830 | 2,106 | 5,595 |
CSS | 2 | 38 | 0 | 169 |
JavaScript | 1 | 7 | 7 | 53 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.75 |
Average class complexity | 35.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 240.00 |
Average method complexity | 5.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 92.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 37 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 223 | |
▷ Static methods | 16 | 7.17% |
▷ Public methods | 184 | 82.51% |
▷ Protected methods | 39 | 17.49% |
▷ Private methods | 0 | 0.00% |
Functions | 59 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 59 | 100.00% |
Constants | 13 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 13 | 100.00% |
▷ Public constants | 13 | 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
There are no PNG files in this plugin