84% print-flyers-lite

Code Review | Print Flyers Lite

WordPress plugin Print Flyers Lite scored 84% from 54 tests.

About plugin

  • Plugin page: print-flyers-lite
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.3.2
  • WordPress version: 6.3.1
  • First release: Aug 2, 2018
  • Latest release: Jan 16, 2020
  • Number of updates: 15
  • Update frequency: every 35.5 days
  • Top authors: kenrichman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 1,609 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.65ms] Passed 4 tests

A check of server-side resources used by Print Flyers Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.37 ▼3.57
Dashboard /wp-admin3.42 ▲0.1154.86 ▲1.67
Posts /wp-admin/edit.php3.53 ▲0.1850.96 ▲2.19
Add New Post /wp-admin/post-new.php6.00 ▲0.1189.29 ▼11.70
Media Library /wp-admin/upload.php3.32 ▲0.0933.77 ▼0.98
Print Flyers Lite /wp-admin/options-general.php?page=printflyers_lite_options_handle3.3235.24

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Print Flyers Lite: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,945 ▲21015.18 ▲0.981.80 ▼0.1944.78 ▼3.47
Dashboard /wp-admin2,348 ▲1606.61 ▲0.73126.06 ▲11.1644.36 ▼9.31
Posts /wp-admin/edit.php2,257 ▲1683.53 ▲1.5145.37 ▲11.1231.90 ▼6.33
Add New Post /wp-admin/post-new.php1,519 ▲517.93 ▲0.48571.44 ▼105.6233.27 ▼24.46
Media Library /wp-admin/upload.php1,394 ▲94.17 ▼0.0381.32 ▼20.7544.56 ▼1.40
Print Flyers Lite /wp-admin/options-general.php?page=printflyers_lite_options_handle1,0173.1238.8265.89

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/print-flyers-lite/html-print.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 27 tag instead of maximum 10
You can take inspiration from this readme.txt

print-flyers-lite/print-flyers-lite.php Passed 13 tests

The main file in "Print Flyers Lite" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
97 characters long description:
WooCommerce extension to create printer-friendly product pages with tailored headers and footers.

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
Good job! No executable or dangerous file extensions detected927 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP519880596
PO File16076158
CSS13711116
JavaScript14857

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity4.45
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods218.18%
▷ Public methods981.82%
▷ Protected methods00.00%
▷ Private methods218.18%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/default-printer-icon.png0.67KB0.44KB▼ 35.36%
assets/icon.png4.98KB2.32KB▼ 53.41%