90% plutu-formidable

Code Review | Plutu Formidable

WordPress plugin Plutu Formidable scored90%from 54 tests.

About plugin

  • Plugin page: plutu-formidable
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.9
  • WordPress version: 6.3.1
  • First release: Apr 11, 2022
  • Latest release: Apr 12, 2022
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: plutupayment (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /496 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.01MB] [CPU: ▼7.02ms] Passed 4 tests

Analyzing server-side resources used by Plutu Formidable
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.87 ▼4.55
Dashboard /wp-admin3.31 ▼0.0446.77 ▼16.14
Posts /wp-admin/edit.php3.36 ▲0.0046.01 ▲2.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.54 ▼9.78
Media Library /wp-admin/upload.php3.23 ▲0.0036.09 ▲2.41

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Plutu Formidable
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.001.57 ▼0.1742.10 ▼1.54
Dashboard /wp-admin2,195 ▲155.63 ▼0.0591.07 ▼3.3341.31 ▼4.63
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0140.81 ▼2.8434.74 ▼5.75
Add New Post /wp-admin/post-new.php1,526 ▼923.81 ▲5.53703.05 ▲90.0952.28 ▼25.91
Media Library /wp-admin/upload.php1,400 ▼34.23 ▲0.0593.73 ▼3.1244.99 ▲1.59

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

plutu-formidable/plutu-formidable.php Passed 13 tests

The main PHP file in "Plutu Formidable" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
44 characters long description:
Plutu Payment Gateways for Formidable Forms.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,131 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP154446531,598
PO File1142246268
JavaScript3619242
SVG20023

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity21.25
▷ Minimum class complexity2.00
▷ Maximum class complexity54.00
Average method complexity3.87
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits2
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods56
▷ Static methods11.79%
▷ Public methods5089.29%
▷ Protected methods58.93%
▷ Private methods11.79%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants14
▷ Global constants14100.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.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/sadad.png13.45KB4.98KB▼ 63.00%
assets/img/adfali.png16.14KB5.84KB▼ 63.79%