79% subscreasy

Code Review | subscrEASY

WordPress plugin subscrEASY scored79%from 54 tests.

About plugin

  • Plugin page: subscreasy
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Jan 6, 2019
  • Latest release: Jan 6, 2019
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: subsreasy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /506 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.87ms] Passed 4 tests

An overview of server-side resources used by subscrEASY
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0727.05 ▼14.36
Dashboard /wp-admin3.32 ▲0.0244.52 ▼5.82
Posts /wp-admin/edit.php3.43 ▲0.0846.31 ▲2.11
Add New Post /wp-admin/post-new.php5.92 ▲0.0488.11 ▲3.75
Media Library /wp-admin/upload.php3.24 ▲0.0231.90 ▼5.40
subscrEASY /wp-admin/options-general.php?page=subscreasy3.2630.51

Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Checking browser requirements for subscrEASY
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲15313.99 ▼0.325.69 ▲3.8438.79 ▼7.85
Dashboard /wp-admin2,217 ▲295.89 ▼0.0196.94 ▼0.1238.47 ▼4.24
Posts /wp-admin/edit.php2,100 ▲142.02 ▼0.0139.48 ▲2.2535.09 ▲1.47
Add New Post /wp-admin/post-new.php1,524 ▼1223.37 ▲0.28630.51 ▼15.0054.44 ▼3.98
Media Library /wp-admin/upload.php1,399 ▲174.23 ▼0.10106.49 ▲6.7545.17 ▲0.86
subscrEASY /wp-admin/options-general.php?page=subscreasy8561.7728.4334.48

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

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/subscreasy/includes/views/subscreasy-button.php
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/subscreasy/includes/admin/views/options.php:7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/subscreasy/includes/views/subscreasy-button.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/subscreasy/includes/views/subscreasy-button.php on line 6
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/subscreasy/includes/views/subscreasy-button.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/subscreasy/includes/views/subscreasy-button.php on line 7
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/subscreasy/includes/views/subscreasy-button.php on line 7
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/subscreasy/includes/views/subscreasy-button.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
7 plugin tags: recurring billing, recurring, billing, hosting, subscription box...

subscreasy/subscreasy.php Passed 13 tests

The main PHP script in "subscrEASY" version 1.0.0 is automatically included on every request by WordPress
29 characters long description:
subscrEASY's official plugin.

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 detected706 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript46372315
PHP655187218
SVG100148
CSS13022
Markdown1203

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity4.33
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods531.25%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected