84% download-monitor-paid-membership-pro-integration

Code Review | Download Monitor & Paid Membership Pro integration

WordPress plugin Download Monitor & Paid Membership Pro integration scored84%from 54 tests.

About plugin

  • Plugin page: download-monitor-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Feb 10, 2023
  • Latest release: Aug 9, 2023
  • Number of updates: 5
  • Update frequency: every 36.2 days
  • Top authors: raldea89 (80%)giucu91 (40%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /717 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Download Monitor & Paid Membership Pro integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.92 ▼4.63
Dashboard /wp-admin3.32 ▲0.0144.02 ▼5.61
Posts /wp-admin/edit.php3.37 ▲0.0145.77 ▼0.86
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.07 ▼7.30
Media Library /wp-admin/upload.php3.24 ▲0.0136.62 ▲6.75

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

Input-output and database impact of this plugin
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_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Download Monitor & Paid Membership Pro integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.22 ▼1.161.84 ▼0.4944.78 ▲0.20
Dashboard /wp-admin2,206 ▲154.85 ▼0.03106.76 ▼8.5238.51 ▼5.31
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0637.80 ▼3.0234.68 ▼3.28
Add New Post /wp-admin/post-new.php1,537 ▲2323.46 ▲5.92662.17 ▼15.0155.21 ▲6.23
Media Library /wp-admin/upload.php1,391 ▲64.21 ▲0.0398.20 ▼3.2540.66 ▼6.02

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/download-monitor-paid-membership-pro-integration/dlm-aam-paid-membership-pro.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

download-monitor-paid-membership-pro-integration/dlm-aam-paid-membership-pro.php 92% from 13 tests

The principal PHP file in "Download Monitor & Paid Membership Pro integration" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("download-monitor-paid-membership-pro-integration.php" instead of "dlm-aam-paid-membership-pro.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin212 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP279141210
Markdown1002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods1285.71%
▷ Protected methods00.00%
▷ Private methods214.29%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin