Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼11.37ms] Passed 4 tests
An overview of server-side resources used by Simple Page Access Restriction
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 44.52 ▼14.68 |
Dashboard /wp-admin | 3.40 ▲0.10 | 53.49 ▼32.85 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 55.67 ▲9.14 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 97.47 ▼7.08 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 47.56 ▲14.05 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Page Access Restriction
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲111 | 13.20 ▼0.99 | 2.10 ▼0.65 | 46.27 ▼15.45 |
Dashboard /wp-admin | 2,238 ▲53 | 4.93 ▼1.12 | 105.98 ▲2.13 | 85.54 ▲37.86 |
Posts /wp-admin/edit.php | 2,121 ▲29 | 2.06 ▲0.06 | 40.07 ▲3.79 | 38.32 ▲2.69 |
Add New Post /wp-admin/post-new.php | 1,697 ▲183 | 21.75 ▲3.86 | 691.06 ▲77.04 | 35.70 ▼20.13 |
Media Library /wp-admin/upload.php | 1,411 ▲29 | 4.27 ▲0.05 | 112.01 ▲11.02 | 82.18 ▲33.20 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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 need to be fixed:
- Screenshots: Please a description for screenshot #1 in simple-page-access-restriction/assets to your readme.txt
simple-page-access-restriction/simple-page-access-restriction.php 92% from 13 tests
The main PHP script in "Simple Page Access Restriction" version 1.0.19 is automatically included on every request by WordPress
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 164 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,260 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 180 | 267 | 781 |
CSS | 5 | 48 | 1 | 265 |
JavaScript | 8 | 36 | 4 | 192 |
Markdown | 1 | 19 | 0 | 19 |
SVG | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 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
6 compressed PNG files occupy 0.38MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/promotions/plugin-edd-advanced-shortcodes.png | 137.51KB | 137.55KB | 0.00% |
assets/admin/images/promotions/ebook-marketplace-guide.png | 60.67KB | 60.67KB | 0.00% |
assets/admin/images/promotions/ebook-upsell-guide.png | 11.30KB | 11.50KB | 0.00% |
assets/admin/images/promotions/plugin-freelancer-marketplace.png | 65.26KB | 67.78KB | 0.00% |
assets/admin/images/promotions/plugin-psupsellmaster.png | 20.03KB | 21.68KB | 0.00% |