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.14MB] [CPU: ▼2.43ms] Passed 4 tests
Server-side resources used by Publitio
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.12 | 45.76 ▲3.22 |
Dashboard /wp-admin | 3.52 ▲0.18 | 53.30 ▲0.80 |
Posts /wp-admin/edit.php | 3.58 ▲0.18 | 48.17 ▼4.60 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.13 | 89.22 ▼8.13 |
Media Library /wp-admin/upload.php | 3.38 ▲0.11 | 41.90 ▲2.20 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Publitio
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲178 | 13.87 ▼0.66 | 10.76 ▲9.22 | 42.40 ▼1.85 |
Dashboard /wp-admin | 2,204 ▲30 | 5.67 ▲0.13 | 100.95 ▲6.18 | 79.17 ▲29.03 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.01 ▲0.03 | 38.47 ▲0.06 | 32.17 ▼4.65 |
Add New Post /wp-admin/post-new.php | 6,217 ▲4,691 | 18.96 ▼4.36 | 919.89 ▲217.11 | 41.63 ▼22.73 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.25 ▲0.01 | 105.07 ▼2.94 | 73.96 ▲25.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/publitio/admin/partials/publitio-admin-display.php
- > /wp-content/plugins/publitio/public/partials/publitio-public-display.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/publitio/admin/partials/publitio-media-button.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/publitio/admin/partials/publitio-settings-page.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
- Screenshots: These screenshots lack descriptions #5, #6, #7 in publitio/assets to your readme.txt
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== publitio ===
)
publitio/publitio.php Passed 13 tests
The principal PHP file in "Publitio" v. 2.1.6 is loaded by WordPress automatically on each request
51 characters long description:
Simple Image & Video Asset Management in the cloud.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected983 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 214 | 654 | 601 |
JavaScript | 5 | 57 | 84 | 260 |
CSS | 4 | 16 | 8 | 67 |
Sass | 3 | 11 | 2 | 49 |
Markdown | 1 | 6 | 0 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 4.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 7 | 12.73% |
▷ Public methods | 47 | 85.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 14.55% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.29MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 93.52KB | 39.02KB | ▼ 58.28% |
assets/screenshot-2.png | 40.33KB | 18.83KB | ▼ 53.30% |
assets/screenshot-3.png | 165.01KB | 62.39KB | ▼ 62.19% |
admin/images/cloud-icon.png | 0.36KB | 0.38KB | 0.00% |