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

Code Review | WP Courseware for Magic Members

WordPress plugin WP Courseware for Magic Members scored84%from 54 tests.

About plugin

  • Plugin page: magic-member-addo...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 7, 2013
  • Latest release: Dec 9, 2022
  • Number of updates: 19
  • Update frequency: every 189.1 days
  • Top authors: flyplugins (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /3,333 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.07MB] [CPU: ▼2.24ms] Passed 4 tests

This is a short check of server-side resources used by WP Courseware for Magic Members
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.34 ▲1.74
Dashboard /wp-admin3.37 ▲0.0750.38 ▲1.61
Posts /wp-admin/edit.php3.48 ▲0.1350.44 ▼1.96
Add New Post /wp-admin/post-new.php5.95 ▲0.0687.27 ▼10.33
Media Library /wp-admin/upload.php3.29 ▲0.0638.42 ▲2.39

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP Courseware for Magic Members
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.17 ▼1.201.58 ▼0.3443.69 ▼6.37
Dashboard /wp-admin2,212 ▲245.83 ▼0.04100.95 ▼8.6441.50 ▼1.43
Posts /wp-admin/edit.php2,097 ▲52.02 ▲0.0342.35 ▼2.6336.26 ▲1.16
Add New Post /wp-admin/post-new.php1,520 ▼1317.55 ▼5.90667.65 ▲77.3151.67 ▼1.86
Media Library /wp-admin/upload.php1,394 ▲64.20 ▼0.0196.36 ▼4.6743.72 ▲1.09

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magic-member-addon-for-wp-courseware/wp-courseware-magic-members.php:16

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 96% 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: learning management system, selling online courses

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

The entry point to "WP Courseware for Magic Members" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("magic-member-addon-for-wp-courseware.php" instead of "wp-courseware-magic-members.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected351 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2151206351

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity17.00
▷ Minimum class complexity6.00
▷ Maximum class complexity28.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity8.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin