Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▲3.53ms] Passed 4 tests
This is a short check of server-side resources used by Protect Pages & Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.29 ▼2.08 |
Dashboard /wp-admin | 3.37 ▲0.07 | 50.67 ▲4.49 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 55.44 ▲10.25 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 97.97 ▲1.44 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 42.40 ▲11.35 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Just a few items left to fix
- You have illegally modified 1 file (0.61KB) outside of "wp-content/plugins/protect-pages-posts/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 35 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_pur_private_links |
New WordPress options |
---|
db_upgraded |
jal_db_version |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Protect Pages & Posts: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 13.22 ▼1.56 | 1.53 ▼0.88 | 42.82 ▼0.14 |
Dashboard /wp-admin | 2,220 ▲32 | 4.91 ▼1.02 | 104.01 ▲6.89 | 39.57 ▼5.63 |
Posts /wp-admin/edit.php | 2,137 ▲48 | 2.05 ▲0.05 | 42.32 ▲6.64 | 35.12 ▼0.50 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 18.49 ▲0.29 | 596.91 ▼4.94 | 56.39 ▲1.60 |
Media Library /wp-admin/upload.php | 1,402 ▲17 | 4.36 ▲0.22 | 100.90 ▲1.70 | 44.67 ▲0.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- jal_db_version
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/protect-pages-posts/admin/partials/prevent_ur_pages-admin-display.php
- > /wp-content/plugins/protect-pages-posts/includes/class-prevent_ur_page-function.php
- > /wp-content/plugins/protect-pages-posts/public/partials/prevent_ur_pages-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Please a description for screenshot #5 in protect-pages-posts/assets to your readme.txt
protect-pages-posts/prevent_ur_pages.php 85% from 13 tests
The main PHP file in "Protect Pages & Posts" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: The principal plugin file should be the same as the plugin slug ("protect-pages-posts.php" instead of "prevent_ur_pages.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin966 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 302 | 687 | 783 |
JavaScript | 1 | 35 | 26 | 110 |
Markdown | 1 | 29 | 0 | 43 |
CSS | 2 | 2 | 13 | 19 |
Bourne Shell | 2 | 3 | 0 | 11 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 4.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 3 | 5.26% |
▷ Public methods | 52 | 91.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 8.77% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 11 | 100.00% |
▷ Public constants | 11 | 100.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.22MB with 0.13MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banner-772x250.png | 223.57KB | 89.51KB | ▼ 59.96% |