Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.95ms] Passed 4 tests
A check of server-side resources used by Hidden Contents
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.46 ▼0.69 |
Dashboard /wp-admin | 3.35 ▲0.05 | 43.61 ▼2.85 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 46.70 ▲1.74 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 89.68 ▼13.98 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 36.11 ▲3.54 |
Server storage [IO: ▲0.11MB] [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: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Hidden Contents
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲76 | 13.25 ▼1.50 | 1.70 ▲0.07 | 40.89 ▲1.18 |
Dashboard /wp-admin | 2,226 ▲34 | 5.86 ▲0.91 | 96.79 ▼8.47 | 40.53 ▼6.53 |
Posts /wp-admin/edit.php | 2,112 ▲20 | 2.06 ▲0.04 | 39.26 ▲4.29 | 34.74 ▲3.66 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 18.36 ▲0.90 | 652.66 ▼36.37 | 67.98 ▲13.92 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.29 ▲0.06 | 108.22 ▲0.13 | 46.24 ▲0.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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 fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hidden-contents/hidden-contents.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/hidden-contents/languages/common-strings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Settings page), #2 (Hidden contents output)
hidden-contents/hidden-contents.php Passed 13 tests
This is the main PHP file of "Hidden Contents" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
A handy plugin for hide contents and images from guest users.
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
No dangerous file extensions were detected374 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 21 | 26 | 207 |
CSS | 2 | 1 | 0 | 74 |
PO File | 1 | 28 | 39 | 71 |
JavaScript | 2 | 3 | 1 | 22 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 9.10KB | 4.18KB | ▼ 54.03% |
screenshot-1.png | 19.19KB | 11.38KB | ▼ 40.66% |