58% wp-member-page

Code Review | Wp Member Page

WordPress plugin Wp Member Page scored58%from 54 tests.

About plugin

  • Plugin page: wp-member-page
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.0
  • WordPress version: 6.3.1
  • First release: Jun 30, 2014
  • Latest release: Jul 1, 2014
  • Number of updates: 25
  • Update frequency: every 0.1 days
  • Top authors: momen2009 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,537 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.88 ▼0.5819.77 ▼20.09
Dashboard /wp-admin3.04 ▼0.3022.71 ▼35.30
Posts /wp-admin/edit.php3.04 ▼0.3125.11 ▼25.39
Add New Post /wp-admin/post-new.php3.04 ▼2.8523.30 ▼80.51
Media Library /wp-admin/upload.php3.04 ▼0.1924.28 ▼15.76
Add New /wp-admin/admin.php?page=wp-member-page/member-new3.0424.37
Member Pages /wp-admin/admin.php?page=wp-member-page/wp-member-page.php3.0425.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9214.74 ▲0.431.89 ▼0.0440.11 ▼7.79
Dashboard /wp-admin2,230 ▲445.87 ▲0.92100.47 ▼10.0039.82 ▼4.46
Posts /wp-admin/edit.php2,116 ▲272.00 ▼0.0038.56 ▲0.3535.13 ▼2.18
Add New Post /wp-admin/post-new.php1,536 ▼13117.69 ▼4.52688.36 ▲87.8476.31 ▲30.44
Media Library /wp-admin/upload.php1,418 ▲334.25 ▼0.04109.38 ▲12.6145.77 ▲3.16
Add New /wp-admin/admin.php?page=wp-member-page/member-new8472.0626.5423.08
Member Pages /wp-admin/admin.php?page=wp-member-page/wp-member-page.php8892.0425.0423.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP1213221743
XML20078
PO File123058

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 code0.22
Average class complexity6.90
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes110.00%
▷ Concrete classes990.00%
▷ Final classes00.00%
Methods47
▷ Static methods919.15%
▷ Public methods4085.11%
▷ Protected methods36.38%
▷ Private methods48.51%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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