84% wishlist-member-addon-for-wp-courseware

Code Review | WP Courseware for WishList Member

WordPress plugin WP Courseware for WishList Member scored84%from 54 tests.

About plugin

  • Plugin page: wishlist-member-a...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 6, 2013
  • Latest release: Sep 9, 2021
  • Number of updates: 30
  • Update frequency: every 119.8 days
  • Top authors: flyplugins (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /12,437 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.91ms] Passed 4 tests

A check of server-side resources used by WP Courseware for WishList Member
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.07 ▼7.91
Dashboard /wp-admin3.38 ▲0.0843.70 ▼5.15
Posts /wp-admin/edit.php3.50 ▲0.1448.24 ▼1.38
Add New Post /wp-admin/post-new.php5.96 ▲0.0894.01 ▼1.21
Media Library /wp-admin/upload.php3.31 ▲0.0834.19 ▼0.80

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WP Courseware for WishList Member
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.66 ▼0.724.45 ▲2.5540.91 ▼7.50
Dashboard /wp-admin2,212 ▲214.86 ▼1.0599.92 ▼12.6641.23 ▼0.97
Posts /wp-admin/edit.php2,091 ▲22.02 ▲0.0340.96 ▲0.9238.36 ▲3.97
Add New Post /wp-admin/post-new.php1,539 ▲523.08 ▼0.31633.42 ▼24.6452.69 ▲2.70
Media Library /wp-admin/upload.php1,394 ▲154.19 ▼0.0593.18 ▼12.9941.40 ▼6.02

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wishlist-member-addon-for-wp-courseware/wp-courseware-wishlist-member.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
2 plugin tags: selling online courses, learning management system

wishlist-member-addon-for-wp-courseware/wp-courseware-wishlist-member.php 92% from 13 tests

"WP Courseware for WishList Member" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wishlist-member-addon-for-wp-courseware.php" instead of "wp-courseware-wishlist-member.php")

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
There were no executable files found in this plugin391 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2172220391

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity22.50
▷ Minimum class complexity15.00
▷ Maximum class complexity30.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods1664.00%
▷ Protected methods728.00%
▷ Private methods28.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin