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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼5.86ms] Passed 4 tests
This is a short check of server-side resources used by Orbisius Member Only Downloads for S2Member
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.10 ▼2.78 |
Dashboard /wp-admin | 3.31 ▼0.03 | 53.66 ▼9.25 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 42.54 ▼1.69 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 79.77 ▼9.71 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.20 ▲2.14 |
Orbisius Member Only Downloads /wp-admin/options-general.php?page=orbisius-member-only-downloads-for-s2member/orbisius-s2member-only-downloads.php | 3.20 | 29.54 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Orbisius Member Only Downloads for S2Member
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.35 ▼0.38 | 1.76 ▲0.06 | 45.24 ▲2.14 |
Dashboard /wp-admin | 2,198 ▲18 | 5.56 ▼0.09 | 81.55 ▼5.45 | 38.32 ▼7.22 |
Posts /wp-admin/edit.php | 2,085 ▼15 | 2.01 ▲0.03 | 34.87 ▲0.10 | 37.28 ▲0.59 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.41 ▲0.71 | 667.39 ▲2.74 | 55.86 ▲2.47 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.19 ▲0.01 | 98.03 ▼1.61 | 43.14 ▼3.84 |
Orbisius Member Only Downloads /wp-admin/options-general.php?page=orbisius-member-only-downloads-for-s2member/orbisius-s2member-only-downloads.php | 915 | 2.03 | 22.80 | 28.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-member-only-downloads-for-s2member/orbisius-s2member-only-downloads.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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:
- Tags: Please delete some tags, you are using 19 tag instead of maximum 10
- Screenshots: Screenshot #1 (Plugin's settings page showing usage) image not found
orbisius-member-only-downloads-for-s2member/orbisius-s2member-only-downloads.php 85% from 13 tests
The main PHP file in "Orbisius Member Only Downloads for S2Member" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("orbisius-member-only-downloads-for-s2member.php" instead of "orbisius-s2member-only-downloads.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 171 characters long)
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
Good job! No executable or dangerous file extensions detected388 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 77 | 117 | 286 |
CSS | 1 | 16 | 3 | 76 |
XML | 2 | 0 | 0 | 26 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
i/guNzr.qr.2.png | 0.23KB | 0.23KB | 0.43% |
i/guNzr.qr.16.png | 0.39KB | 0.41KB | 0.00% |
screenshot-1.png | 96.83KB | 34.06KB | ▼ 64.82% |