Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼181.64ms] Passed 4 tests
This is a short check of server-side resources used by Content Hider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 24.94 ▲2.27 |
Dashboard /wp-admin | 3.07 ▲0.01 | 31.04 ▼7.11 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 29.87 ▼2.59 |
Add New Post /wp-admin/post-new.php | 5.44 ▼0.00 | 67.88 ▼717.75 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 23.91 ▲0.88 |
Content Hider Settings /wp-admin/plugins.php?page=wpch_settings | 2.97 | 19.11 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Content Hider: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,674 ▲73 | 16.00 ▼0.01 | 4.76 ▼0.13 | 74.81 ▼4.58 |
Dashboard /wp-admin | 2,935 ▲36 | 6.10 ▼0.05 | 110.72 ▼27.43 | 166.43 ▼7.96 |
Posts /wp-admin/edit.php | 2,745 ▲5 | 3.24 ▼0.00 | 62.85 ▲1.43 | 136.22 ▼1.56 |
Add New Post /wp-admin/post-new.php | 3,701 ▼114 | 18.83 ▼0.76 | 429.27 ▼66.77 | 175.95 ▲9.29 |
Media Library /wp-admin/upload.php | 1,757 ▲5 | 5.49 ▼0.07 | 141.11 ▲0.16 | 184.79 ▼0.25 |
Content Hider Settings /wp-admin/plugins.php?page=wpch_settings | 1,260 | 3.22 | 62.60 | 140.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=wpch_settings
- > Notice in wp-content/plugins/content-hider/options-panel.php+131
Trying to access array offset on value of type bool
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
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/content-hider/short-codes.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-hider/content-hider.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-hider/options-panel.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-hider/editor-buttons.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: private content, members-only, sensitive content, membership website, hide posts...
content-hider/content-hider.php 92% from 13 tests
The principal PHP file in "Content Hider" v. 0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 147 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 plugin266 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 30 | 26 | 178 |
CSS | 1 | 12 | 0 | 66 |
JavaScript | 2 | 0 | 2 | 22 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
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 | 14 | |
▷ Named functions | 14 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/img/error.png | 0.22KB | 0.24KB | 0.00% |
static/js/lock.png | 0.21KB | 0.25KB | 0.00% |