Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.75ms] Passed 4 tests
Server-side resources used by Simple Members Area
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 32.74 ▼5.91 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.19 ▼3.14 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.55 ▼1.99 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.58 ▼7.95 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.27 ▲2.66 |
Member Login /wp-admin/options-general.php?page=simple-members-area/simple-members-area.php | 3.21 | 29.77 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Members Area
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.20 ▼1.17 | 1.62 ▼0.07 | 38.16 ▼1.95 |
Dashboard /wp-admin | 2,207 ▲19 | 5.80 ▼0.06 | 94.03 ▼4.48 | 39.09 ▼2.69 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.14 ▲0.09 | 38.35 ▲2.98 | 35.73 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,532 ▼2 | 18.41 ▼4.77 | 664.73 ▼36.28 | 51.56 ▼1.91 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▼0.01 | 100.45 ▼3.54 | 45.93 ▼0.36 |
Member Login /wp-admin/options-general.php?page=simple-members-area/simple-members-area.php | 810 | 2.06 | 23.13 | 25.46 |
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
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simple-members-area/simple-members-area.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Members can be assigned a landing page), #2 (You can assign a "default landing page" for those who don't have a page specified), #3 (All you have to do is make pages "private" and you have a members area)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== simple-members-area ===
)
simple-members-area/simple-members-area.php Passed 13 tests
"Simple Members Area" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
50 characters long description:
A simple way to create a members area in WordPress
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
Success! There were no dangerous files found in this plugin158 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 65 | 18 | 158 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 11 | |
▷ Named functions | 11 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 22.93KB | 7.39KB | ▼ 67.77% |
screenshot-3.png | 53.28KB | 18.70KB | ▼ 64.90% |
screenshot-2.png | 30.13KB | 10.08KB | ▼ 66.55% |