Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.28ms] Passed 4 tests
An overview of server-side resources used by Hidden Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 43.12 ▼4.35 |
Dashboard /wp-admin | 3.33 ▼0.02 | 51.80 ▼9.44 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.42 ▼0.48 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.52 ▼6.86 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.73 ▲3.36 |
Hidden Plugin /wp-admin/options-general.php?page=hidden_plugin | 3.22 | 34.66 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Hidden Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲26 | 14.73 ▲0.44 | 1.83 ▼0.39 | 43.62 ▼2.92 |
Dashboard /wp-admin | 2,206 ▲29 | 5.62 ▼0.05 | 96.33 ▲3.46 | 42.22 ▲2.78 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.01 ▼0.02 | 36.27 ▼2.88 | 33.92 ▼4.99 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.11 ▲2.01 | 679.03 ▲23.93 | 64.80 ▲11.91 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.26 ▲0.06 | 96.94 ▼13.85 | 43.51 ▼2.43 |
Hidden Plugin /wp-admin/options-general.php?page=hidden_plugin | 943 | 1.99 | 33.80 | 31.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser 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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Donate link: Invalid url: "#"
hidden-plugin/hidden-plugin.php Passed 13 tests
The main PHP script in "Hidden Plugin" version 1.0 is automatically included on every request by WordPress
33 characters long description:
Hide plugins from Selected users.
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
Success! There were no dangerous files found in this plugin793 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 141 | 161 | 614 |
PHP | 2 | 20 | 37 | 176 |
CSS | 2 | 0 | 5 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.58 |
▷ 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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
4 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
0.0.1/screenshot-2.png | 29.91KB | 12.92KB | ▼ 56.80% |
screenshot-2.png | 29.91KB | 12.92KB | ▼ 56.80% |
screenshot-1.png | 27.16KB | 11.88KB | ▼ 56.28% |
0.0.1/screenshot-1.png | 27.16KB | 11.88KB | ▼ 56.28% |