84% proabono

Code Review | ProAbono - Subscription billing

WordPress plugin ProAbono - Subscription billing scored84%from 54 tests.

About plugin

  • Plugin page: proabono
  • Plugin version: 2.0.10
  • PHP compatiblity: 7.0.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 4, 2022
  • Latest release: Jun 7, 2023
  • Number of updates: 19
  • Update frequency: every 13.0 days
  • Top authors: proabono (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,038 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.17MB] [CPU: ▼4.10ms] Passed 4 tests

An overview of server-side resources used by ProAbono - Subscription billing
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1837.04 ▼2.07
Dashboard /wp-admin3.49 ▲0.1447.54 ▼11.57
Posts /wp-admin/edit.php3.60 ▲0.2450.90 ▲3.69
Add New Post /wp-admin/post-new.php6.07 ▲0.1893.16 ▼0.37
Media Library /wp-admin/upload.php3.41 ▲0.1834.92 ▼2.38

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for ProAbono - Subscription billing
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲9813.77 ▼0.652.01 ▲0.3841.63 ▲6.26
Dashboard /wp-admin2,225 ▲394.84 ▼0.08108.20 ▼1.5740.87 ▼2.24
Posts /wp-admin/edit.php2,105 ▲161.98 ▼0.0439.66 ▲3.6935.47 ▼0.55
Add New Post /wp-admin/post-new.php1,527 ▲1317.52 ▲0.08651.96 ▼27.0161.08 ▲4.70
Media Library /wp-admin/upload.php1,407 ▲224.21 ▲0.0098.18 ▼1.9542.02 ▼2.31

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/proabono/proabono.php:73
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/proabono/templates/settings.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: proabono, subscription billing, subscription, recurring billing, content protection

proabono/proabono.php Passed 13 tests

"ProAbono - Subscription billing" version 2.0.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
93 characters long description:
This plugin connects WordPress to ProAbono which is a powerful subscription billing solution.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin855 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP7261290855

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity26.00
▷ Minimum class complexity1.00
▷ Maximum class complexity61.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods42
▷ Static methods24.76%
▷ Public methods42100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin