90% patron-memberships-patreon-connect

Code Review | Patreon Connect: Patron Memberships

WordPress plugin Patreon Connect: Patron Memberships scored90%from 54 tests.

About plugin

  • Plugin page: patron-membership...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jun 22, 2017
  • Latest release: Jun 22, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: uiux (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,127 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Patreon Connect: Patron Memberships
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0238.32 ▼0.69
Dashboard /wp-admin3.37 ▼0.0247.84 ▼22.93
Posts /wp-admin/edit.php3.48 ▲0.0850.67 ▲2.82
Add New Post /wp-admin/post-new.php5.95 ▲0.0289.11 ▼21.70
Media Library /wp-admin/upload.php3.29 ▲0.0236.93 ▲1.18

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

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

Browser metrics Passed 4 tests

Patreon Connect: Patron Memberships: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7614.12 ▼0.261.85 ▲0.1939.82 ▼1.34
Dashboard /wp-admin2,203 ▲265.63 ▼0.0395.79 ▲0.8043.44 ▼2.57
Posts /wp-admin/edit.php2,108 ▲82.02 ▲0.0742.06 ▲4.4938.45 ▲5.60
Add New Post /wp-admin/post-new.php1,534 ▲822.97 ▼0.22684.87 ▼12.7451.82 ▼4.94
Media Library /wp-admin/upload.php1,408 ▲54.21 ▼0.03103.20 ▼20.4541.06 ▼5.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: patreon, patreon connect, memberships, patreon wordpress, memberships pro

patron-memberships-patreon-connect/patreon-wordpress-memberships.php 92% from 13 tests

The principal PHP file in "Patreon Connect: Patron Memberships" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("patron-memberships-patreon-connect.php" instead of "patreon-wordpress-memberships.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected176 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP311127176

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity5.50
▷ Minimum class complexity2.00
▷ Maximum class complexity9.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin