84% wishlist-member-show-all-levels

Code Review | WishList Member: Show All Levels

WordPress plugin WishList Member: Show All Levels scored84%from 54 tests.

About plugin

  • Plugin page: wishlist-member-s...
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Nov 6, 2015
  • Latest release: May 26, 2016
  • Number of updates: 22
  • Update frequency: every 52.3 days
  • Top authors: macbookandrew (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,366 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

A check of server-side resources used by WishList Member: Show All Levels
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.32 ▼2.02
Dashboard /wp-admin3.31 ▼0.0451.42 ▼14.34
Posts /wp-admin/edit.php3.36 ▲0.0050.25 ▼4.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.23 ▼18.71
Media Library /wp-admin/upload.php3.23 ▲0.0037.31 ▲0.48

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WishList Member: Show All Levels
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.82 ▲0.172.00 ▲0.1845.46 ▲4.37
Dashboard /wp-admin2,221 ▲155.88 ▼0.00114.24 ▲1.5546.20 ▲3.48
Posts /wp-admin/edit.php2,100 ▼32.05 ▲0.0536.34 ▲0.4639.66 ▲4.52
Add New Post /wp-admin/post-new.php1,545 ▲1923.63 ▲5.91661.46 ▼36.6152.99 ▲2.87
Media Library /wp-admin/upload.php1,400 ▲34.22 ▼0.03102.51 ▼18.5846.78 ▼3.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wishlist-member-show-all-levels/wishlist-member-show-all-levels.php:138

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: wishlist member, wishlist, authorized, account, levels...

wishlist-member-show-all-levels/wishlist-member-show-all-levels.php Passed 13 tests

The primary PHP file in "WishList Member: Show All Levels" version 1.5.2 is used by WordPress to initiate all plugin functionality
74 characters long description:
Provides a shortcode that outputs all levels a member is allowed to access

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected153 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1325298
JavaScript18144
JSON11011

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin