Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼4.53ms] Passed 4 tests
An overview of server-side resources used by Thirdwatch
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.40 ▼0.23 |
Dashboard /wp-admin | 3.31 ▼0.03 | 52.02 ▼19.01 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.15 ▲2.55 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 101.86 ▲5.75 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.45 ▼1.41 |
Server storage [IO: ▲1.96MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 276 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Thirdwatch
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.08 | 1.67 ▲0.04 | 39.51 ▼3.27 |
Dashboard /wp-admin | 2,198 ▲21 | 5.57 ▼0.10 | 94.20 ▲0.30 | 42.91 ▲6.33 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.01 | 39.97 ▲3.86 | 38.21 ▲2.86 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.09 ▼0.03 | 699.43 ▲38.89 | 65.80 ▲12.00 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.23 ▲0.03 | 101.04 ▼1.61 | 47.26 ▼0.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 120× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/thirdwatch/includes/libraries/thirdwatch-php/vendor/guzzlehttp/promises/src/EachPromise.php:8
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/thirdwatch/includes/libraries/thirdwatch-php/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/thirdwatch/includes/libraries/thirdwatch-php/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/thirdwatch/includes/libraries/thirdwatch-php/test/Model/SendMessageTest.php:42
- > PHP Fatal error
Uncaught Error: Interface 'ai\\thirdwatch\\Model\\ModelInterface' not found in wp-content/plugins/thirdwatch/includes/libraries/thirdwatch-php/thirdwatch_api/Model/UnTag.php:43
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/thirdwatch/includes/libraries/thirdwatch-php/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:4
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/thirdwatch/includes/libraries/thirdwatch-php/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/thirdwatch/includes/libraries/thirdwatch-php/vendor/guzzlehttp/psr7/src/MultipartStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'ai\\thirdwatch\\Model\\ModelInterface' not found in wp-content/plugins/thirdwatch/includes/libraries/thirdwatch-php/thirdwatch_api/Model/BillingAddress.php:44
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/thirdwatch/includes/libraries/thirdwatch-php/test/Model/PaymentMethodTest.php:42
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
thirdwatch/thirdwatch.php 92% from 13 tests
The principal PHP file in "Thirdwatch" v. 1.1.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Domain Path: The domain path is invalid: folder "/i18n/languages/" does not exist
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
Good job! No executable or dangerous file extensions detected27,646 lines of code in 269 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 198 | 5,271 | 18,779 | 22,594 |
Markdown | 59 | 1,474 | 0 | 4,545 |
JSON | 7 | 0 | 0 | 431 |
Bourne Shell | 1 | 13 | 8 | 31 |
XML | 1 | 1 | 0 | 20 |
JavaScript | 1 | 1 | 0 | 14 |
make | 1 | 4 | 0 | 9 |
CSS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 12.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 170.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 15 | |
Traits | 2 | |
Classes | 168 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 168 | 100.00% |
▷ Final classes | 8 | 4.76% |
Methods | 2,388 | |
▷ Static methods | 332 | 13.90% |
▷ Public methods | 2,226 | 93.22% |
▷ Protected methods | 45 | 1.88% |
▷ Private methods | 117 | 4.90% |
Functions | 205 | |
▷ Named functions | 57 | 27.80% |
▷ Anonymous functions | 148 | 72.20% |
Constants | 87 | |
▷ Global constants | 10 | 11.49% |
▷ Class constants | 77 | 88.51% |
▷ Public constants | 77 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 2.05KB | 0.21KB | ▼ 89.50% |