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 gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.89ms] Passed 4 tests
An overview of server-side resources used by WP Post Hide
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 42.03 ▲5.54 |
Dashboard /wp-admin | 3.41 ▲0.07 | 47.63 ▼13.32 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 44.14 ▲0.30 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 94.55 ▼1.56 |
Media Library /wp-admin/upload.php | 3.34 ▲0.10 | 37.74 ▲3.01 |
WP Post Hide /wp-admin/admin.php?page=xswpph_page | 3.30 | 30.36 |
Support /wp-admin/admin.php?page=xswpph_support | 3.30 | 42.72 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Post Hide
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.20 ▼0.15 | 1.79 ▲0.21 | 42.13 ▲3.72 |
Dashboard /wp-admin | 2,223 ▲49 | 5.66 ▲0.13 | 87.26 ▼3.86 | 43.77 ▲4.56 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.01 ▲0.03 | 36.52 ▲0.76 | 34.14 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,547 ▲20 | 22.64 ▼0.46 | 646.71 ▼7.07 | 51.91 ▼18.04 |
Media Library /wp-admin/upload.php | 1,428 ▲31 | 4.24 ▲0.05 | 97.48 ▲1.37 | 42.34 ▼3.24 |
WP Post Hide /wp-admin/admin.php?page=xswpph_page | 867 | 1.70 | 24.80 | 29.06 |
Support /wp-admin/admin.php?page=xswpph_support | 917 | 1.66 | 23.52 | 31.96 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in wp-post-hide/assets to your readme.txt
wp-post-hide/wp-post-hide.php 92% from 13 tests
"WP Post Hide" version 1.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin865 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 51 | 141 | 571 |
JavaScript | 1 | 7 | 0 | 127 |
PO File | 1 | 34 | 76 | 85 |
CSS | 1 | 5 | 0 | 82 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 10 | 71.43% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
3 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/post meta box.png | 26.15KB | 13.66KB | ▼ 47.78% |
assets/images/page meta box.png | 51.33KB | 27.65KB | ▼ 46.13% |
assets/images/Settings.png | 26.36KB | 15.06KB | ▼ 42.85% |