Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.52MB] [CPU: ▼6.91ms] Passed 4 tests
A check of server-side resources used by Publitio Offloading
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.02 ▲0.56 | 42.43 ▼2.23 |
Dashboard /wp-admin | 3.86 ▲0.51 | 50.60 ▼17.41 |
Posts /wp-admin/edit.php | 3.91 ▲0.55 | 55.05 ▲2.21 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.49 | 91.54 ▼7.73 |
Media Library /wp-admin/upload.php | 3.78 ▲0.55 | 39.71 ▼0.28 |
Server storage [IO: ▲3.90MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 368 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Publitio Offloading: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 13.29 ▼1.44 | 1.65 ▼0.22 | 42.84 ▲3.30 |
Dashboard /wp-admin | 2,239 ▲69 | 5.82 ▲0.18 | 110.32 ▲9.24 | 89.42 ▲52.35 |
Posts /wp-admin/edit.php | 2,118 ▲15 | 1.98 ▼0.04 | 36.02 ▼3.45 | 36.27 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,692 ▲146 | 21.03 ▼2.25 | 709.30 ▼7.58 | 90.54 ▲31.44 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.21 ▲0.06 | 107.21 ▼12.27 | 51.37 ▲1.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 145× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Tests\\Psr7\\BaseTest' not found in wp-content/plugins/publitio-offloading/vendor/guzzlehttp/psr7/tests/CachingStreamTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Tests\\Psr7\\BaseTest' not found in wp-content/plugins/publitio-offloading/vendor/guzzlehttp/psr7/tests/NoSeekStreamTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Tests\\Psr7\\BaseTest' not found in wp-content/plugins/publitio-offloading/vendor/guzzlehttp/psr7/tests/RequestTest.php:12
- > PHP Warning
fwrite() expects parameter 1 to be resource, string given in wp-content/plugins/publitio-offloading/vendor/guzzlehttp/guzzle/build/Burgomaster.php on line 115
- > PHP Warning
Use of undefined constant STDERR - assumed 'STDERR' (this will throw an Error in a future version of PHP) in wp-content/plugins/publitio-offloading/vendor/guzzlehttp/guzzle/build/Burgomaster.php on line 115
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Tests\\Psr7\\BaseTest' not found in wp-content/plugins/publitio-offloading/vendor/guzzlehttp/psr7/tests/DroppingStreamTest.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/publitio-offloading/vendor/guzzlehttp/psr7/src/Request.php:12
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Tests\\Psr7\\BaseTest' not found in wp-content/plugins/publitio-offloading/vendor/guzzlehttp/psr7/tests/StreamTest.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/publitio-offloading/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/publitio-offloading/vendor/guzzlehttp/promises/tests/RejectedPromiseTest.php:11
- > 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 79% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== publitio-offloading ===
) - Screenshots: These screenshots lack descriptions #2, #3, #4 in publitio-offloading/assets to your readme.txt
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
publitio-offloading/publitio-offloading.php 77% from 13 tests
The main PHP file in "Publitio Offloading" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- 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
- Git Repository: There should be no Git repositories present in your plugin
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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 detected32,738 lines of code in 293 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 186 | 3,373 | 7,309 | 21,477 |
Markdown | 21 | 1,131 | 0 | 3,556 |
CSS | 4 | 347 | 84 | 1,685 |
HTML | 27 | 44 | 152 | 1,662 |
JavaScript | 14 | 159 | 175 | 1,589 |
reStructuredText | 8 | 845 | 1,058 | 1,116 |
TeX | 10 | 102 | 65 | 659 |
JSON | 10 | 0 | 0 | 592 |
make | 5 | 51 | 5 | 219 |
YAML | 3 | 20 | 1 | 92 |
XML | 3 | 0 | 0 | 53 |
Python | 1 | 18 | 22 | 28 |
Dockerfile | 1 | 8 | 0 | 10 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 9.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 164.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 15 | |
Traits | 2 | |
Classes | 146 | |
▷ Abstract classes | 1 | 0.68% |
▷ Concrete classes | 145 | 99.32% |
▷ Final classes | 12 | 8.28% |
Methods | 1,665 | |
▷ Static methods | 91 | 5.47% |
▷ Public methods | 1,501 | 90.15% |
▷ Protected methods | 15 | 0.90% |
▷ Private methods | 149 | 8.95% |
Functions | 488 | |
▷ Named functions | 73 | 14.96% |
▷ Anonymous functions | 415 | 85.04% |
Constants | 63 | |
▷ Global constants | 8 | 12.70% |
▷ Class constants | 55 | 87.30% |
▷ Public constants | 55 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
30 PNG files occupy 2.07MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/publitio/publitio/docs/html/doc.png | 0.73KB | 0.53KB | ▼ 27.48% |
vendor/publitio/publitio/docs/html/bdwn.png | 0.14KB | 0.12KB | ▼ 19.05% |
vendor/publitio/publitio/docs/html/closed.png | 0.13KB | 0.11KB | ▼ 12.12% |
vendor/publitio/publitio/docs/html/search/search_r.png | 0.60KB | 0.53KB | ▼ 10.95% |
vendor/publitio/publitio/docs/html/folderopen.png | 0.58KB | 0.55KB | ▼ 6.03% |