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.00MB] [CPU: ▼6.05ms] Passed 4 tests
A check of server-side resources used by DesignO
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.36 ▲0.52 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.37 ▼3.98 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.86 ▲5.74 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.89 ▼21.99 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.81 ▲1.25 |
Server storage [IO: ▲0.12MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 17 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_designo_tbl |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for DesignO
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.75 ▲0.01 | 1.93 ▼0.09 | 42.28 ▼4.10 |
Dashboard /wp-admin | 2,198 ▲21 | 5.65 ▼0.04 | 90.90 ▼6.69 | 40.52 ▼1.70 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.01 ▲0.02 | 36.45 ▼3.08 | 34.58 ▼1.03 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.42 ▲0.33 | 656.83 ▼4.37 | 53.93 ▼8.87 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.24 ▲0.01 | 98.16 ▲1.53 | 41.05 ▲0.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_designo_tbl
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_url() in wp-content/plugins/designo/design-tool.php:2
- > PHP Notice
Undefined variable: _SESSION in wp-content/plugins/designo/upload-tool.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_url() in wp-content/plugins/designo/upload-tool.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/designo/upload-tool.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/designo/class.designo-rest-api.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #0, #0, #0, #0 in designo/assets to your readme.txt
designo/designo.php 92% from 13 tests
The principal PHP file in "DesignO" v. 1.0.7 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 401 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,108 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 271 | 156 | 1,866 |
CSS | 2 | 5 | 6 | 142 |
JavaScript | 2 | 21 | 14 | 100 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 68 | |
▷ Named functions | 46 | 67.65% |
▷ Anonymous functions | 22 | 32.35% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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/uploaded_artwork.png | 3.97KB | 1.84KB | ▼ 53.81% |