89% memberpress-addon-for-wp-courseware

Code Review | WP Courseware for MemberPress

WordPress plugin WP Courseware for MemberPress scored89%from 54 tests.

About plugin

  • Plugin page: memberpress-addon...
  • Plugin version: 2.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 8, 2013
  • Latest release: Nov 22, 2023
  • Number of updates: 33
  • Update frequency: every 112.1 days
  • Top authors: flyplugins (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /13,042 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.12ms] Passed 4 tests

Analyzing server-side resources used by WP Courseware for MemberPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1038.64 ▼4.65
Dashboard /wp-admin3.41 ▲0.0648.31 ▼11.60
Posts /wp-admin/edit.php3.53 ▲0.1746.98 ▼2.68
Add New Post /wp-admin/post-new.php6.00 ▲0.1092.53 ▼1.54
Media Library /wp-admin/upload.php3.34 ▲0.1035.39 ▼0.99

Server storage [IO: ▲0.05MB] [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: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

WP Courseware for MemberPress: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3314.67 ▼0.041.50 ▼0.2836.64 ▼7.67
Dashboard /wp-admin2,203 ▲295.62 ▲0.0293.14 ▼5.9142.64 ▲1.72
Posts /wp-admin/edit.php2,102 ▲21.96 ▼0.0639.60 ▼1.5835.69 ▼0.67
Add New Post /wp-admin/post-new.php1,531 ▲522.89 ▼0.27582.00 ▼51.4250.21 ▲2.21
Media Library /wp-admin/upload.php1,405 ▲84.24 ▲0.0296.97 ▲1.2642.39 ▲1.44

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: selling online courses, learning management system

memberpress-addon-for-wp-courseware/wp-courseware-memberpress.php 85% from 13 tests

The primary PHP file in "WP Courseware for MemberPress" version 2.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("memberpress-addon-for-wp-courseware.php" instead of "wp-courseware-memberpress.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin529 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP7189441529

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity13.40
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods32
▷ Static methods13.12%
▷ Public methods2371.88%
▷ Protected methods721.88%
▷ Private methods26.25%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin