Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.76ms] Passed 4 tests
Analyzing server-side resources used by Hide Posts by Category
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.64 ▼3.49 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.57 ▼9.95 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 42.99 ▼3.57 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.42 ▼14.02 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.73 ▲3.15 |
Hide A Post /wp-admin/options-general.php?page=hap | 3.20 | 28.14 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
hap |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Hide Posts by Category
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.81 ▲0.44 | 1.92 ▲0.07 | 37.98 ▼1.55 |
Dashboard /wp-admin | 2,207 ▲19 | 5.82 ▲0.98 | 97.02 ▼3.29 | 39.34 ▼3.38 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.98 ▼0.07 | 37.46 ▼0.18 | 34.12 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.16 ▼0.12 | 678.35 ▲20.13 | 60.69 ▲9.97 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.21 ▲0.04 | 95.63 ▼7.93 | 43.03 ▼5.14 |
Hide A Post /wp-admin/options-general.php?page=hap | 809 | 2.02 | 23.25 | 24.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
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
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=hap
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=hap
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/hide-a-post/hide-a-post.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Screenshots: A description for screenshot #3 is missing in hide-a-post/assets to your readme.txt
hide-a-post/hide-a-post.php Passed 13 tests
This is the main PHP file of "Hide Posts by Category" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
128 characters long description:
WordPress plugin that hides posts on the site, search, and WordPress admin from non-Administrators using one or more categories.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin196 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 18 | 12 | 148 |
Markdown | 1 | 21 | 0 | 48 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 12 | |
▷ Named functions | 12 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/screenshot-2.png | 49.15KB | 25.32KB | ▼ 48.47% |
images/screenshot-3.png | 29.27KB | 14.32KB | ▼ 51.07% |
images/screenshot-1.png | 85.00KB | 42.48KB | ▼ 50.02% |