Benchmarks
Plugin footprint 65% 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.15MB] [CPU: ▲18.87ms] Passed 4 tests
An overview of server-side resources used by HTTP Requests Tracker for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 65.54 ▲21.95 |
Dashboard /wp-admin | 3.46 ▲0.11 | 77.36 ▲16.04 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 84.01 ▲32.29 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 112.59 ▲5.20 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 70.54 ▲34.57 |
Server storage [IO: ▲6.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 1,542 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_hrt_logs |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
hrt_plugin_version |
widget_recent-posts |
db_upgraded |
hrt_install_date |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
HTTP Requests Tracker for WordPress: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲131 | 13.43 ▼0.87 | 9.11 ▲7.06 | 42.46 ▼0.92 |
Dashboard /wp-admin | 2,233 ▲53 | 5.65 ▲0.03 | 88.62 ▼11.22 | 38.16 ▼2.59 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 2.04 ▲0.03 | 39.58 ▲3.01 | 35.92 ▼2.02 |
Add New Post /wp-admin/post-new.php | 1,556 ▲25 | 22.11 ▼1.03 | 693.41 ▲87.32 | 56.14 ▲1.73 |
Media Library /wp-admin/upload.php | 1,445 ▲45 | 4.25 ▲0.07 | 97.69 ▼7.69 | 43.53 ▼0.95 |
Settings /wp-admin/admin.php?page=hrt#/settings | 1,115 | 12.55 | 253.37 | 84.01 |
Stats /wp-admin/admin.php?page=hrt#/stats | 920 | 8.43 | 276.05 | 57.93 |
Schemes /wp-admin/admin.php?page=hrt#/schemes | 1,426 | 12.31 | 133.52 | 50.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_hrt_logs
- The uninstall procedure has failed, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- hrt_plugin_version
- hrt_install_date
- can_compress_scripts
- db_upgraded
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 8× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/http-requests-tracker/vendor/illuminate/pagination/resources/views/simple-default.blade.php
- > /wp-content/plugins/http-requests-tracker/vendor/illuminate/pagination/resources/views/default.blade.php
- > /wp-content/plugins/http-requests-tracker/vendor/wa72/url/phpunit_bootstrap.php
- > /wp-content/plugins/http-requests-tracker/vendor/illuminate/pagination/resources/views/semantic-ui.blade.php
- > /wp-content/plugins/http-requests-tracker/vendor/illuminate/pagination/resources/views/bootstrap-4.blade.php
- > /wp-content/plugins/http-requests-tracker/vendor/illuminate/pagination/resources/views/simple-bootstrap-4.blade.php
- > /wp-content/plugins/http-requests-tracker/vendor/symfony/translation/Resources/bin/translation-status.php
- > /wp-content/plugins/http-requests-tracker/templates/backend.php
- 324× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Trait 'Illuminate\\Support\\Traits\\Macroable' not found in wp-content/plugins/http-requests-tracker/vendor/illuminate/database/Eloquent/FactoryBuilder.php on line 9
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Loader\\LoaderInterface' not found in wp-content/plugins/http-requests-tracker/vendor/symfony/translation/Loader/ArrayLoader.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Illuminate\\Contracts\\Support\\Arrayable' not found in wp-content/plugins/http-requests-tracker/vendor/illuminate/support/Collection.php:40
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\Exception' not found in wp-content/plugins/http-requests-tracker/vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidArgumentException.php:13
- > PHP Fatal error
Trait 'Illuminate\\Support\\Traits\\Macroable' not found in wp-content/plugins/http-requests-tracker/vendor/illuminate/support/Optional.php on line 8
- > PHP Fatal error
Uncaught Error: Interface 'Carbon\\Exceptions\\InvalidArgumentException' not found in wp-content/plugins/http-requests-tracker/vendor/nesbot/carbon/src/Carbon/Exceptions/NotACarbonClassException.php:17
- > PHP Fatal error
Trait 'Illuminate\\Database\\DetectsLostConnections' not found in wp-content/plugins/http-requests-tracker/vendor/illuminate/database/Connectors/Connector.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Database\\Schema\\Grammars\\Grammar' not found in wp-content/plugins/http-requests-tracker/vendor/illuminate/database/Schema/Grammars/PostgresGrammar.php:8
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Database\\Connectors\\Connector' not found in wp-content/plugins/http-requests-tracker/vendor/illuminate/database/Connectors/SQLiteConnector.php:7
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/http-requests-tracker/vendor/illuminate/support/Facades/Hash.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #1, #10, #11, #12, #13, #14, #2, #3, #4, #5, #6, #7, #8, #9 in http-requests-tracker/assets to your readme.txt
http-requests-tracker/http-requests-tracker.php 85% from 13 tests
The primary PHP file in "HTTP Requests Tracker for WordPress" version 0.1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Git Repository: An alternative Git repository was detected
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Please make sure to remedy the following
- Do not distribute dangerous files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/http-requests-tracker/vendor/nesbot/carbon/bin/carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,247 | 14,160 | 52,753 | 62,695 |
XSD | 3 | 92 | 48 | 2,803 |
JSON | 20 | 1 | 0 | 2,037 |
Markdown | 20 | 352 | 0 | 872 |
Blade | 5 | 11 | 19 | 136 |
reStructuredText | 1 | 74 | 78 | 75 |
SVG | 4 | 0 | 0 | 23 |
XML | 2 | 2 | 0 | 23 |
YAML | 1 | 3 | 0 | 9 |
JavaScript | 3 | 4 | 32 | 7 |
DOS Batch | 1 | 0 | 0 | 4 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 138)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 8.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 298.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 138.00 |
Code structure | ||
---|---|---|
Namespaces | 112 | |
Interfaces | 136 | |
Traits | 49 | |
Classes | 405 | |
▷ Abstract classes | 25 | 6.17% |
▷ Concrete classes | 380 | 93.83% |
▷ Final classes | 36 | 9.47% |
Methods | 5,221 | |
▷ Static methods | 742 | 14.21% |
▷ Public methods | 4,142 | 79.33% |
▷ Protected methods | 953 | 18.25% |
▷ Private methods | 126 | 2.41% |
Functions | 667 | |
▷ Named functions | 194 | 29.09% |
▷ Anonymous functions | 473 | 70.91% |
Constants | 151 | |
▷ Global constants | 20 | 13.25% |
▷ Class constants | 131 | 86.75% |
▷ Public constants | 127 | 96.95% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo.png | 12.27KB | 5.16KB | ▼ 57.92% |
(invalid) assets/img/404.png | 9.00KB | 0.00KB | ▼ 100.00% |