84% simple-members-area

Code Review | Simple Members Area

WordPress plugin Simple Members Area scored84%from 54 tests.

About plugin

  • Plugin page: simple-members-area
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9.2
  • WordPress version: 6.3.1
  • First release: Aug 26, 2014
  • Latest release: Aug 26, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: 3pointross (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /6,081 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Server-side resources used by Simple Members Area
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0232.74 ▼5.91
Dashboard /wp-admin3.32 ▲0.0243.19 ▼3.14
Posts /wp-admin/edit.php3.37 ▲0.0144.55 ▼1.99
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.58 ▼7.95
Media Library /wp-admin/upload.php3.24 ▲0.0137.27 ▲2.66
Member Login /wp-admin/options-general.php?page=simple-members-area/simple-members-area.php3.2129.77

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Simple Members Area
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.20 ▼1.171.62 ▼0.0738.16 ▼1.95
Dashboard /wp-admin2,207 ▲195.80 ▼0.0694.03 ▼4.4839.09 ▼2.69
Posts /wp-admin/edit.php2,096 ▲72.14 ▲0.0938.35 ▲2.9835.73 ▲0.48
Add New Post /wp-admin/post-new.php1,532 ▼218.41 ▼4.77664.73 ▼36.2851.56 ▼1.91
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.01100.45 ▼3.5445.93 ▼0.36
Member Login /wp-admin/options-general.php?page=simple-members-area/simple-members-area.php8102.0623.1325.46

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • 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
Everything seems fine, however this is by no means an exhaustive test

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/simple-members-area/simple-members-area.php:12

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 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Members can be assigned a landing page), #2 (You can assign a "default landing page" for those who don't have a page specified), #3 (All you have to do is make pages "private" and you have a members area)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === simple-members-area === )
You can look at the official readme.txt

simple-members-area/simple-members-area.php Passed 13 tests

"Simple Members Area" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
50 characters long description:
A simple way to create a members area in WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin158 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16518158

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png22.93KB7.39KB▼ 67.77%
screenshot-3.png53.28KB18.70KB▼ 64.90%
screenshot-2.png30.13KB10.08KB▼ 66.55%