Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼1.01MB] [CPU: ▼40.32ms] Passed 4 tests
A check of server-side resources used by Wp Member Page
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▼0.58 | 19.77 ▼20.09 |
Dashboard /wp-admin | 3.04 ▼0.30 | 22.71 ▼35.30 |
Posts /wp-admin/edit.php | 3.04 ▼0.31 | 25.11 ▼25.39 |
Add New Post /wp-admin/post-new.php | 3.04 ▼2.85 | 23.30 ▼80.51 |
Media Library /wp-admin/upload.php | 3.04 ▼0.19 | 24.28 ▼15.76 |
Add New /wp-admin/admin.php?page=wp-member-page/member-new | 3.04 | 24.37 |
Member Pages /wp-admin/admin.php?page=wp-member-page/wp-member-page.php | 3.04 | 25.53 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- The plugin illegally modified 1 file (0.69KB) outside of "wp-content/plugins/wp-member-page/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 19 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_member_page |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
afb_db_version |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wp Member Page
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 14.74 ▲0.43 | 1.89 ▼0.04 | 40.11 ▼7.79 |
Dashboard /wp-admin | 2,230 ▲44 | 5.87 ▲0.92 | 100.47 ▼10.00 | 39.82 ▼4.46 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.00 ▼0.00 | 38.56 ▲0.35 | 35.13 ▼2.18 |
Add New Post /wp-admin/post-new.php | 1,536 ▼131 | 17.69 ▼4.52 | 688.36 ▲87.84 | 76.31 ▲30.44 |
Media Library /wp-admin/upload.php | 1,418 ▲33 | 4.25 ▼0.04 | 109.38 ▲12.61 | 45.77 ▲3.16 |
Add New /wp-admin/admin.php?page=wp-member-page/member-new | 847 | 2.06 | 26.54 | 23.08 |
Member Pages /wp-admin/admin.php?page=wp-member-page/wp-member-page.php | 889 | 2.04 | 25.04 | 23.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_member_page
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- afb_db_version
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-member-page/wp-member-page.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/admin.php?page=wp-member-page/wp-member-page.php
- > Deprecated in wp-content/plugins/wp-member-page/dao/Dao.php+17
Function get_magic_quotes_gpc() is deprecated
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-member-page/wp-member-page.php
- > Notice in wp-content/plugins/wp-member-page/index.php+5
Undefined index: action
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-member-page/wp-member-page.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function get_pages() in wp-content/plugins/wp-member-page/controller/IndexController.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_pages() in wp-content/plugins/wp-member-page/controller/MemberNewController.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_pages() in wp-content/plugins/wp-member-page/controller/MemberNewController.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_pages() in wp-content/plugins/wp-member-page/controller/IndexController.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: authentication, basic, member, page
wp-member-page/wp-member-page.php Passed 13 tests
This is the main PHP file of "Wp Member Page" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
62 characters long description:
Plug-in to create a membership page with basic authentication.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin879 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 132 | 21 | 743 |
XML | 2 | 0 | 0 | 78 |
PO File | 1 | 23 | 0 | 58 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 9 | 19.15% |
▷ Public methods | 40 | 85.11% |
▷ Protected methods | 3 | 6.38% |
▷ Private methods | 4 | 8.51% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin