Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.09MB] [CPU: ▼10.55ms] Passed 4 tests
Server-side resources used by Hipsum Pixel
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 32.56 ▼10.31 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.05 ▼5.22 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.79 ▲3.96 |
Add New Post /wp-admin/post-new.php | 5.45 ▼0.43 | 68.74 ▼28.75 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.20 ▲2.08 |
Hipsum Pixel Options /wp-admin/tools.php?page=hipsum-pixel | 3.24 | 30.30 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Hipsum Pixel
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.26 ▼1.30 | 1.84 ▼0.33 | 41.52 ▼9.44 |
Dashboard /wp-admin | 2,213 ▲24 | 5.84 ▲0.93 | 103.67 ▼22.52 | 39.45 ▼6.12 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.04 | 39.71 ▲5.50 | 35.15 ▼1.62 |
Add New Post /wp-admin/post-new.php | 1,956 ▲423 | 23.00 ▲0.16 | 654.23 ▼4.94 | 66.57 ▲7.39 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.19 ▼0.05 | 94.24 ▼10.07 | 41.03 ▼4.35 |
Hipsum Pixel Options /wp-admin/tools.php?page=hipsum-pixel | 836 | 2.06 | 27.77 | 29.27 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/hipsum-pixel/admin/partials/hipsum-pixel-modal.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/hipsum-pixel/admin/partials/hipsum-pixel-section-info.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== hipsum-pixel ===
) - Screenshots: These screenshots lack descriptions #2, #3, #4 in hipsum-pixel/assets to your readme.txt
- Tags: You are using too many tags: 12 tag instead of maximum 10
hipsum-pixel/hipsum-pixel.php 92% from 13 tests
The principal PHP file in "Hipsum Pixel" v. 2.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 238 characters long)
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 detected664 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 131 | 451 | 389 |
JavaScript | 1 | 26 | 19 | 182 |
CSS | 4 | 11 | 16 | 93 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 23 | 85.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 14.81% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
9 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/jquery-ui/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
admin/img/screenshot-1.png | 30.62KB | 6.18KB | ▼ 79.81% |
lib/jquery-ui/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
lib/jquery-ui/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
admin/img/icon-dark.png | 2.55KB | 1.93KB | ▼ 24.29% |