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 gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.95ms] Passed 4 tests
A check of server-side resources used by Simple Page Specific Maintenance Mode
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 43.94 ▼0.04 |
Dashboard /wp-admin | 3.38 ▲0.07 | 50.05 ▼8.29 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 44.96 ▼3.83 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 82.62 ▼7.62 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.59 ▲3.75 |
Configure Maintenance /wp-admin/options-general.php?page=kmithi-maintenance-setting | 3.29 | 37.95 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Page Specific Maintenance Mode
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.29 ▼1.09 | 1.77 ▲0.09 | 43.55 ▲0.52 |
Dashboard /wp-admin | 2,214 ▲26 | 5.04 ▼0.82 | 112.79 ▼2.42 | 41.88 ▲0.90 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.24 ▲0.22 | 32.60 ▼2.88 | 34.11 ▼0.49 |
Add New Post /wp-admin/post-new.php | 1,521 ▲2 | 23.33 ▲0.16 | 674.92 ▼8.34 | 49.89 ▼9.97 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.36 ▲0.16 | 95.51 ▼1.60 | 42.63 ▼0.76 |
Configure Maintenance /wp-admin/options-general.php?page=kmithi-maintenance-setting | 987 | 2.01 | 36.28 | 33.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Requires php: The plugin version is formatted incorrectly
- Screenshots: Add an image for screenshot #1 (wp-admin setting page (settings -> Configure Maintenance).)
simple-pagesposts-specific-maintenance-mode/km-maintenance.php 92% from 13 tests
This is the main PHP file of "Simple Page Specific Maintenance Mode" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-pagesposts-specific-maintenance-mode.php" instead of "km-maintenance.php")
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 detected3,304 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 548 | 388 | 2,534 |
CSS | 2 | 112 | 19 | 516 |
PHP | 4 | 31 | 73 | 254 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
5 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/select2.png | 0.51KB | 0.99KB | 0.00% |
assets/images/select2x2.png | 0.64KB | 0.77KB | 0.00% |
assets/screenshot-1.png | 28.25KB | 16.43KB | ▼ 41.83% |
assets/screenshot-3.png | 7.53KB | 3.43KB | ▼ 54.52% |
assets/screenshot-2.png | 86.70KB | 43.42KB | ▼ 49.91% |