90% checkout-freemius

Code Review | Freemius Checkout

WordPress plugin Freemius Checkout scored 90% from 54 tests.

About plugin

  • Plugin page: checkout-freemius
  • Plugin version: 1.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Apr 15, 2017
  • Latest release: Feb 3, 2018
  • Number of updates: 12
  • Update frequency: every 24.6 days
  • Top authors: ramiy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

This is a short check of server-side resources used by Freemius Checkout
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0347.23 ▼11.69
Dashboard /wp-admin3.31 ▲0.0059.21 ▼4.74
Posts /wp-admin/edit.php3.36 ▼0.4954.09 ▼3.16
Add New Post /wp-admin/post-new.php5.89 ▼0.00104.52 ▼13.47
Media Library /wp-admin/upload.php3.23 ▼0.0040.90 ▲2.68

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Freemius Checkout
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.22 ▼0.571.78 ▼3.3741.85 ▼4.31
Dashboard /wp-admin2,203 ▼64.79 ▼0.06129.09 ▲13.2244.82 ▲0.99
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0340.22 ▲4.3735.50 ▲1.53
Add New Post /wp-admin/post-new.php1,514 ▼1917.74 ▼5.60637.22 ▼27.3748.05 ▼4.92
Media Library /wp-admin/upload.php1,391 ▲64.27 ▲0.0898.75 ▼4.2743.02 ▼0.77

Uninstaller [IO: ✅] [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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 97% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Screenshots: Screenshot #1 (Freemius Checkout) image required
The official readme.txt might help

checkout-freemius/checkout-freemius.php Passed 13 tests

The primary PHP file in "Freemius Checkout" version 1.2 is used by WordPress to initiate all plugin functionality
84 characters long description:
Sell WordPress Plugins & Themes. Anywhere. Using Freemius Checkout "Buy Now" button.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected52 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101752

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
1 PNG file occupies 0.47MB with 0.24MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png483.58KB237.73KB▼ 50.84%