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.04MB] [CPU: ▼5.11ms] Passed 4 tests
An overview of server-side resources used by MC Protected Page Upgrade
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 43.70 ▲0.49 |
Dashboard /wp-admin | 3.34 ▲0.04 | 51.26 ▼0.50 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 47.29 ▼4.08 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 85.04 ▼16.35 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 38.69 ▲0.82 |
MC Protected Page Upgrade /wp-admin/options-general.php?page=mc6397-page-pwd-duration | 3.23 | 31.46 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
mc6397ppu_duration_minutes |
widget_recent-comments |
widget_theysaidso_widget |
mc6397ppu_duration_seconds |
mc6397ppu_duration_hours |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
MC Protected Page Upgrade: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.69 ▲0.48 | 1.78 ▼0.10 | 44.15 ▼1.45 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▲0.00 | 93.04 ▼4.57 | 42.68 ▲0.29 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.00 | 36.34 ▼2.77 | 35.62 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,529 ▼8 | 23.01 ▲4.42 | 657.66 ▲3.61 | 52.86 ▼28.16 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.20 ▼0.02 | 99.00 ▼6.97 | 42.85 ▼4.48 |
MC Protected Page Upgrade /wp-admin/options-general.php?page=mc6397-page-pwd-duration | 845 | 2.14 | 24.07 | 28.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/mc-protected-page-upgrade/mc-protected-page-upgrade.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mc-protected-page-upgrade/inc/mc6397ppu_update-form.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: password protect, password duration, page password, password, cookie duration...
mc-protected-page-upgrade/mc-protected-page-upgrade.php Passed 13 tests
The main PHP script in "MC Protected Page Upgrade" version 2.5.3 is automatically included on every request by WordPress
137 characters long description:
Set the time allowed before a password must be again entered for a password-protected post or page. Also enhances the page password form.
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
No dangerous file extensions were detected22 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 2 | 13 | 22 |
PHP code Passed 2 tests
An short overview of 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.24 |
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 | 10 | |
▷ Named functions | 10 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/padlock.png | 20.85KB | 7.16KB | ▼ 65.66% |