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.11MB] [CPU: ▼0.69ms] Passed 4 tests
An overview of server-side resources used by Temporarily Hidden Content
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 41.72 ▼5.01 |
Dashboard /wp-admin | 3.42 ▲0.11 | 49.22 ▼1.36 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 48.98 ▲2.01 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 98.48 ▲8.74 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.35 ▲1.61 |
Temporarily Hidden Content /wp-admin/options-general.php?page=temporarily-hidden-content | 3.37 | 34.34 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
default_color |
version |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Temporarily Hidden Content
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲126 | 13.70 ▼0.70 | 5.96 ▲3.67 | 44.01 ▼4.23 |
Dashboard /wp-admin | 2,214 ▲29 | 5.86 ▼0.02 | 102.31 ▼17.64 | 40.58 ▼2.95 |
Posts /wp-admin/edit.php | 2,100 ▲8 | 2.10 ▲0.11 | 42.08 ▲5.17 | 32.93 ▼0.00 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 18.12 ▼5.22 | 620.79 ▼78.38 | 49.69 ▼9.53 |
Media Library /wp-admin/upload.php | 1,390 ▲5 | 4.28 ▲0.07 | 99.68 ▼7.90 | 40.08 ▼3.18 |
Temporarily Hidden Content /wp-admin/options-general.php?page=temporarily-hidden-content | 900 | 1.76 | 26.05 | 29.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- version
- theysaidso_admin_options
- default_color
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
7 plugin tags: gutenberg, blocks, pages, entries, seo...
temporarily-hidden-content/temporarily-hidden-content.php Passed 13 tests
This is the main PHP file of "Temporarily Hidden Content" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
41 characters long description:
Hide or show content until specific date.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin946 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 81 | 26 | 504 |
CSS | 4 | 59 | 1 | 273 |
JavaScript | 4 | 11 | 0 | 169 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 68.63% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 31.37% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 14.12KB | 7.47KB | ▼ 47.07% |