80% formidablepro-2-pdf

Code Review | Formidable PRO2PDF

WordPress plugin Formidable PRO2PDF scored80%from 54 tests.

About plugin

Code review

54 tests

User reviews

16 reviews

Install metrics

1,000+ active /85,716 total downloads

Benchmarks

Plugin footprint 65% 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.03MB] [CPU: ▼5.85ms] Passed 4 tests

A check of server-side resources used by Formidable PRO2PDF
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.17 ▼1.95
Dashboard /wp-admin3.35 ▲0.0047.89 ▼14.35
Posts /wp-admin/edit.php3.40 ▲0.0448.71 ▲5.19
Add New Post /wp-admin/post-new.php5.93 ▲0.0579.27 ▼8.41
Media Library /wp-admin/upload.php3.27 ▲0.0436.23 ▲1.30

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 30 new files
Database: 3 new tables, 12 new options
New tables
wp_fpropdf_tmp
wp_fpropdf_layouts
wp_fpropdf_fields
New WordPress options
db_upgraded
fpropdf_limit_dropdowns
fpropdf_version
fpropdf_installed_version
widget_theysaidso_widget
fpropdf_enable_security
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
...

Browser metrics Passed 4 tests

Formidable PRO2PDF: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6014.13 ▼0.211.71 ▼0.1743.35 ▼0.89
Dashboard /wp-admin2,195 ▲155.53 ▼0.1297.97 ▲8.3675.54 ▲35.51
Posts /wp-admin/edit.php2,112 ▲151.97 ▼0.0333.49 ▼3.8732.34 ▼0.82
Add New Post /wp-admin/post-new.php1,554 ▲2822.97 ▼0.41642.44 ▼60.8261.16 ▲9.58
Media Library /wp-admin/upload.php1,412 ▲124.27 ▲0.0596.63 ▼10.6168.69 ▲23.14

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_fpropdf_tmp
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: forms, pdftk, pro2pdf, formidable, pdf...

formidablepro-2-pdf/fpropdf.php 92% from 13 tests

The main file in "Formidable PRO2PDF" v. 3.18 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("formidablepro-2-pdf.php" instead of "fpropdf.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin6,897 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP158781235,517
JavaScript211511,061
CSS3160181
Sass2138137
JSON1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity9.30
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity6.53
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions72
▷ Named functions72100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
res/blank.png0.14KB0.08KB▼ 43.84%
res/icon.png0.73KB0.65KB▼ 10.31%