10% rkg-membership-level

Code Review | rkg_membership_level

WordPress plugin rkg_membership_level scored10%from 54 tests.

About plugin

  • Plugin page: rkg-membership-level
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 28, 2023
  • Latest release: Feb 28, 2023
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: rkg142576 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /88 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.15ms] Passed 4 tests

This is a short check of server-side resources used by rkg_membership_level
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.63 ▼1.33
Dashboard /wp-admin3.32 ▲0.0146.73 ▼0.73
Posts /wp-admin/edit.php3.37 ▲0.0143.63 ▼3.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.21 ▼14.97
Media Library /wp-admin/upload.php3.24 ▲0.0137.82 ▲5.85

Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
add_membership_column_has_run
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

rkg_membership_level: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6813.14 ▼1.261.81 ▲0.0243.02 ▼1.74
Dashboard /wp-admin2,220 ▲294.86 ▼0.96110.70 ▲3.6636.99 ▼0.98
Posts /wp-admin/edit.php2,085 ▼42.06 ▲0.0135.48 ▼1.1329.32 ▼5.03
Add New Post /wp-admin/post-new.php1,679 ▲14622.52 ▼0.57635.74 ▲36.9852.27 ▲3.34
Media Library /wp-admin/upload.php1,465 ▲804.19 ▼0.01103.16 ▼0.9043.44 ▼0.06

Uninstaller [IO: ▲0.43MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall correctly, leaving 7 files (0.43MB) in the plugin directory
    • (new file) screenshot-1.png
    • (new file) member.php
    • (new file) bootstrap/css/bootstrap.min.css
    • (new file) uninstall.php
    • (new file) LICENSE.txt
    • (new file) membership.php
    • (new file) readme.txt
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • add_membership_column_has_run
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/rkg-membership-level/membership.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/rkg-membership-level/member.php:16

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 Passed 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
There were not plugin tags detected

rkg-membership-level/membership.php 85% from 13 tests

The main PHP file in "rkg_membership_level" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("rkg-membership-level.php" instead of "membership.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin306 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36021305
CSS1051

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.20MB with 0.13MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png208.51KB80.04KB▼ 61.61%