84% gold-member

Code Review | Gold Member

WordPress plugin Gold Member scored84%from 54 tests.

About plugin

  • Plugin page: gold-member
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.8
  • WordPress version: 6.3.1
  • First release: Nov 24, 2021
  • Latest release: Nov 24, 2021
  • Number of updates: 3
  • Update frequency: every 20.3 days
  • Top authors: sunukunsinje (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /323 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.10ms] Passed 4 tests

Server-side resources used by Gold Member
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0239.12 ▼6.12
Dashboard /wp-admin3.35 ▲0.0453.68 ▲2.84
Posts /wp-admin/edit.php3.40 ▲0.0450.25 ▲0.24
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.89 ▼20.20
Media Library /wp-admin/upload.php3.27 ▲0.0439.69 ▲1.67

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: 1 new table, 6 new options
New tables
wp_goldmember_data
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Gold Member
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,718 ▼4313.55 ▼0.818.54 ▲6.9647.46 ▲3.26
Dashboard /wp-admin2,198 ▲245.62 ▼0.0484.05 ▼8.0634.87 ▼4.78
Posts /wp-admin/edit.php2,079 ▼211.99 ▲0.0034.89 ▼7.9933.45 ▼6.61
Add New Post /wp-admin/post-new.php1,526 ▼723.34 ▲0.62665.37 ▼6.3452.06 ▼4.33
Media Library /wp-admin/upload.php1,403 ▲34.23 ▲0.0199.05 ▼17.0642.01 ▼7.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • 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
Good news, no errors were detected

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/gold-member/gold-member.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (The view of the membership login/registration form.) image missing
Please take inspiration from this readme.txt

gold-member/gold-member.php Passed 13 tests

This is the main PHP file of "Gold Member" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
31 characters long description:
Membership Plugin for WordPress

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
No dangerous file extensions were detected330 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2518199
CSS181107
JavaScript113224

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions8
▷ Named functions8100.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/member.png6.33KB3.63KB▼ 42.69%