84% handyplugins-paddlepress

Code Review | HandyPlugins PaddlePress - Paddle Integration for WordPress

WordPress plugin HandyPlugins PaddlePress - Paddle Integration for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: handyplugins-padd...
  • Plugin version: 2.1
  • PHP compatiblity: 7.2.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Dec 24, 2020
  • Latest release: Nov 6, 2023
  • Number of updates: 18
  • Update frequency: every 58.2 days
  • Top authors: handyplugins (66.67%)m_uysl (38.89%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,237 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.35MB] [CPU: ▲6.43ms] Passed 4 tests

An overview of server-side resources used by HandyPlugins PaddlePress - Paddle Integration for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3544.50 ▲1.40
Dashboard /wp-admin3.65 ▲0.3454.98 ▲2.42
Posts /wp-admin/edit.php3.76 ▲0.4159.26 ▲12.00
Add New Post /wp-admin/post-new.php6.25 ▲0.36101.75 ▲10.32
Media Library /wp-admin/upload.php3.57 ▲0.3444.28 ▲11.59
Plans /wp-admin/admin.php?page=paddlepress-plans3.55273.64
Settings /wp-admin/admin.php?page=handyplugins-paddlepress3.5442.41
Products /wp-admin/admin.php?page=paddlepress-products3.55230.58

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
paddlepress_free_db_version
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for HandyPlugins PaddlePress - Paddle Integration for WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲4014.33 ▲0.111.60 ▼0.5637.19 ▼5.38
Dashboard /wp-admin2,235 ▲645.63 ▼0.0293.11 ▼5.9346.57 ▼2.70
Posts /wp-admin/edit.php2,137 ▲372.03 ▲0.0940.23 ▲2.9836.08 ▲2.29
Add New Post /wp-admin/post-new.php1,557 ▲3123.29 ▲0.10611.33 ▼139.4857.25 ▲12.86
Media Library /wp-admin/upload.php1,440 ▲404.27 ▲0.07100.44 ▼0.4243.87 ▼0.50
Plans /wp-admin/admin.php?page=paddlepress-plans8251.7724.7627.23
Settings /wp-admin/admin.php?page=handyplugins-paddlepress1,3511.9634.0640.15
Products /wp-admin/admin.php?page=paddlepress-products8221.7524.7226.85

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • paddlepress_free_db_version
    • 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/handyplugins-paddlepress/plugin.php:23

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

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
5 plugin tags: paddle, membership, payment, software-licensing, paddlepress

handyplugins-paddlepress/plugin.php 92% from 13 tests

The primary PHP file in "HandyPlugins PaddlePress - Paddle Integration for WordPress" version 2.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("handyplugins-paddlepress.php" instead of "plugin.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
No dangerous file extensions were detected1,498 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP102884151,388
CSS12263382
JavaScript45228

PHP code Passed 2 tests

Analyzing 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.25
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces9
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods5
▷ Static methods00.00%
▷ Public methods360.00%
▷ Protected methods00.00%
▷ Private methods240.00%
Functions49
▷ Named functions4693.88%
▷ Anonymous functions36.12%
Constants44
▷ Global constants613.64%
▷ Class constants3886.36%
▷ Public constants38100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin