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
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.28ms] Passed 4 tests
Server-side resources used by Multiple Passwords for Protected Pages
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 52.53 ▲9.57 |
Dashboard /wp-admin | 3.36 ▲0.06 | 49.58 ▼4.96 |
Posts /wp-admin/edit.php | 3.42 ▲0.05 | 54.68 ▲2.83 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.05 | 84.73 ▼7.20 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 39.97 ▲4.20 |
Multipass for Pages /wp-admin/options-general.php?page=bawmpp_settings | 3.23 | 33.31 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Multiple Passwords for Protected Pages: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.17 ▼0.16 | 1.82 ▼0.07 | 43.57 ▼5.30 |
Dashboard /wp-admin | 2,199 ▲22 | 5.58 ▼0.06 | 87.71 ▼12.15 | 37.59 ▼5.73 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.01 | 40.98 ▲5.31 | 35.23 ▼2.30 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.56 ▼0.14 | 619.81 ▼70.12 | 51.89 ▼6.85 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.21 ▲0.02 | 100.56 ▼7.75 | 43.04 ▼5.82 |
Multipass for Pages /wp-admin/options-general.php?page=bawmpp_settings | 938 | 2.13 | 23.00 | 38.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=bawmpp_settings
- > Deprecated in wp-content/plugins/baw-multiple-pass-for-protected-pages/inc/backend-noajax.inc.php+47
Function create_function() is deprecated
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/baw-multiple-pass-for-protected-pages/inc/about.inc.php
- > /wp-content/plugins/baw-multiple-pass-for-protected-pages/inc/setting_fields.inc.php
- > /wp-content/plugins/baw-multiple-pass-for-protected-pages/inc/backend-noajax.inc.php
- > /wp-content/plugins/baw-multiple-pass-for-protected-pages/inc/frontend-noajax.inc.php
- > /wp-content/plugins/baw-multiple-pass-for-protected-pages/inc/bothend-noajax.inc.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/baw-multiple-pass-for-protected-pages/bawmpp.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=bawmpp_settings
- > Network (severe)
https://dl.dropbox.com/u/45956904/plugins/bawlogo.png - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/options-general.php?page=bawmpp_settings
- > Network (severe)
https://dl.dropbox.com/u/45956904/plugins/paypal_big.png - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 93% 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
Attributes that require attention:
- Tested up to: Version format is invalid
baw-multiple-pass-for-protected-pages/bawmpp.php 92% from 13 tests
The entry point to "Multiple Passwords for Protected Pages" version 1.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("baw-multiple-pass-for-protected-pages.php" instead of "bawmpp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected386 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 27 | 9 | 333 |
PO File | 1 | 19 | 18 | 53 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
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 | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon32.png | 1.87KB | 1.54KB | ▼ 17.46% |