Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.10MB] [CPU: ▼11.73ms] Passed 4 tests
An overview of server-side resources used by Hide Post Locker
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.34 ▼8.58 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.23 ▼5.96 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.87 ▼6.22 |
Add New Post /wp-admin/post-new.php | 5.46 ▼0.43 | 74.94 ▼26.17 |
Media Library /wp-admin/upload.php | 3.22 ▼0.01 | 30.85 ▼5.07 |
Hide Post Locker /wp-admin/options-general.php?page=hpl-options | 3.19 | 29.51 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Hide Post Locker
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.48 ▲0.22 | 1.83 ▲0.01 | 43.02 ▼0.65 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼0.11 | 107.91 ▲1.88 | 41.90 ▼2.15 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.02 | 40.46 ▼0.45 | 34.32 ▼3.69 |
Add New Post /wp-admin/post-new.php | 1,602 ▲69 | 18.29 ▼4.79 | 621.61 ▼40.59 | 42.45 ▼16.19 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.25 ▲0.07 | 96.75 ▼15.88 | 42.35 ▼6.87 |
Hide Post Locker /wp-admin/options-general.php?page=hpl-options | 876 | 2.06 | 24.72 | 29.59 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=hpl-options
- > Notice in wp-content/plugins/hide-post-locker/hide-post-locker.php+134
Trying to access array offset on value of type null
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 take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hide-post-locker/hide-post-locker.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hide-post-locker/admin/post-locker-admin-page.php:21
- > 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 90% from 29 tests
readme.txt 88% 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 your attention:
- Screenshots: Add images for these screenshots: #1 (The post locker screen with the link to hide the window.), #2 (The message bar at the bottom of the window when preview the edit window.), #3 (Custom admin area to change the default text!), #4 (Results of our text entered into the "Message Window" area in the admin options.), #5 (Results of our text entered into the "Preview Message Box" area in the admin options.)
- Tested up to: Invalid plugin version format
hide-post-locker/hide-post-locker.php 92% from 13 tests
The principal PHP file in "Hide Post Locker" v. 0.1 is loaded by WordPress automatically on each request
It is important 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected246 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 81 | 169 | 176 |
Markdown | 1 | 16 | 0 | 30 |
CSS | 1 | 2 | 0 | 28 |
JavaScript | 1 | 9 | 8 | 12 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
5 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 16.82KB | 4.94KB | ▼ 70.63% |
screenshot-1.png | 21.35KB | 6.26KB | ▼ 70.68% |
screenshot-4.png | 20.56KB | 5.97KB | ▼ 70.98% |
screenshot-3.png | 76.36KB | 26.46KB | ▼ 65.35% |
screenshot-2.png | 14.57KB | 3.91KB | ▼ 73.19% |