78% shopify-leaky-paywall-integration

Code Review | Shopify->Leaky Paywall Integration Wordpress Plugin

WordPress plugin Shopify->Leaky Paywall Integration Wordpress Plugin scored78%from 54 tests.

About plugin

  • Plugin page: shopify-leaky-pay...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Jan 9, 2015
  • Latest release: Jan 9, 2015
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: mbis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /829 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.57ms] Passed 4 tests

An overview of server-side resources used by Shopify->Leaky Paywall Integration Wordpress Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.03 ▼3.70
Dashboard /wp-admin3.34 ▲0.0348.17 ▼3.79
Posts /wp-admin/edit.php3.39 ▲0.0346.10 ▲1.66
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.95 ▼4.46
Media Library /wp-admin/upload.php3.26 ▲0.0336.31 ▲4.09

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Shopify->Leaky Paywall Integration Wordpress Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.57 ▼0.651.95 ▲0.1842.82 ▼1.23
Dashboard /wp-admin2,207 ▲224.85 ▼0.15101.14 ▼16.1543.92 ▼2.62
Posts /wp-admin/edit.php2,090 ▲11.97 ▼0.0238.95 ▲2.8935.21 ▲1.64
Add New Post /wp-admin/post-new.php1,537 ▲923.09 ▲4.72637.81 ▼49.3454.14 ▼2.32
Media Library /wp-admin/upload.php1,392 ▲14.13 ▼0.0396.70 ▼3.4942.42 ▼1.47
Shopify/Paywall /wp-admin/shopify-paywall.php260.440.0814.08

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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 following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shopify-leaky-paywall-integration/shopify-paywall.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/shopify-paywall.php
    • > Network (severe)
    wp-admin/shopify-paywall.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (The plugin admin dashboard.) image missing
The official readme.txt is a good inspiration

shopify-leaky-paywall-integration/shopify-paywall.php 92% from 13 tests

This is the main PHP file of "Shopify->Leaky Paywall Integration Wordpress Plugin" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("shopify-leaky-paywall-integration.php" instead of "shopify-paywall.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
Good job! No executable or dangerous file extensions detected139 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13824136
Markdown1103

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png71.51KB34.21KB▼ 52.16%