68% form-print-pay

Code Review | Form print pay

WordPress plugin Form print pay scored68%from 54 tests.

About plugin

  • Plugin page: form-print-pay
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.0
  • WordPress version: 6.3.1
  • First release: Nov 4, 2017
  • Latest release: Dec 28, 2018
  • Number of updates: 4
  • Update frequency: every 104.8 days
  • Top authors: saulmorales (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /930 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.80MB] [CPU: ▼39.99ms] Passed 4 tests

This is a short check of server-side resources used by Form print pay
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.19 ▼0.2716.84 ▼26.95
Dashboard /wp-admin3.21 ▼0.1016.76 ▼40.42
Posts /wp-admin/edit.php3.21 ▼0.1519.60 ▼25.43
Add New Post /wp-admin/post-new.php3.21 ▼2.6816.86 ▼67.15
Media Library /wp-admin/upload.php3.21 ▼0.0317.54 ▼16.18
shortcodes Form /wp-admin/edit.php?post_type=fpp_form_print_pay3.2117.73
Add New /wp-admin/post-new.php?post_type=fpp_form_print_pay3.2116.16

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Form print pay
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,983 ▲23713.62 ▼0.756.06 ▲4.1934.92 ▼7.63
Dashboard /wp-admin2,272 ▲844.90 ▼1.0099.51 ▼18.1473.19 ▲30.23
Posts /wp-admin/edit.php2,161 ▲722.05 ▼0.0039.94 ▲1.1835.29 ▲2.99
Add New Post /wp-admin/post-new.php1,725 ▲18322.52 ▲4.23707.08 ▲106.5952.87 ▼5.03
Media Library /wp-admin/upload.php1,454 ▲754.29 ▲0.0198.18 ▲0.8347.67 ▲3.33
paypal /wp-admin/admin.php?page=configpaypal-form print pay9672.0526.4425.37
shortcodes Form /wp-admin/edit.php?post_type=fpp_form_print_pay1,1251.9734.4031.51
PDF /wp-admin/admin.php?page=configpdf-form print pay1,0342.0524.8928.93
Ordenes pendientes /wp-admin/admin.php?page=config-form print pay8502.1024.0123.03
Email /wp-admin/admin.php?page=configemail-form print pay9322.1025.8924.90
Add New /wp-admin/post-new.php?post_type=fpp_form_print_pay1,7512.6449.9272.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/form-print-pay/includes/fpdf/fpdf.php+1043
    Function get_magic_quotes_runtime() is deprecated
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=fpp_form_print_pay
    • > Deprecated in wp-content/plugins/form-print-pay/includes/fpdf/fpdf.php+1043
    Function get_magic_quotes_runtime() is deprecated
    • > GET request to /wp-admin/post-new.php?post_type=fpp_form_print_pay
    • > Warning in wp-content/plugins/form-print-pay/includes/class-form-print-pay-admin.php+241
    count(): Parameter must be an array or an object that implements Countable

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'FPDF' not found in wp-content/plugins/form-print-pay/includes/class-form-print-pay-pdf.php:9

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: You are using too many tags: 24 tag instead of maximum 10
The official readme.txt might help

form-print-pay/form-print-pay.php 92% from 13 tests

The entry point to "Form print pay" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected4,720 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP293933834,272
JavaScript2454383
CSS34065

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity49.31
▷ Minimum class complexity3.00
▷ Maximum class complexity338.00
Average method complexity4.72
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods169
▷ Static methods00.00%
▷ Public methods12976.33%
▷ Protected methods4023.67%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin