99% pojo-forms

Code Review | Pojo Forms

WordPress plugin Pojo Forms scored 99% from 53 tests.

About plugin

  • Plugin page: pojo-forms
  • Plugin version: 1.4.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.8
  • WordPress version: 5.8.1
  • First release: Jul 12, 2015
  • Latest release: Jul 15, 2021
  • Number of updates: 58
  • Update frequency: every 37.9 days
  • Top authors: KingYes (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10,000+ active / 61,733 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼280.30ms] Passed 4 tests

Server-side resources used by Pojo Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1635.34 ▲13.33
Dashboard /wp-admin3.10 ▲0.0439.92 ▼5.36
Posts /wp-admin/edit.php3.18 ▲0.0845.80 ▲10.57
Add New Post /wp-admin/post-new.php5.46 ▲0.0385.21 ▼1,115.47
Media Library /wp-admin/upload.php3.04 ▲0.0330.87 ▼10.93

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pojo Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,682 ▲7615.94 ▲0.479.18 ▲1.5646.17 ▼1.60
Dashboard /wp-admin2,942 ▲895.97 ▲0.08141.69 ▲6.91112.29 ▲9.99
Posts /wp-admin/edit.php2,713 ▲72.69 ▼0.0172.77 ▲7.86101.55 ▲6.49
Add New Post /wp-admin/post-new.php1,662 ▲7418.47 ▼2.51378.21 ▲57.03112.32 ▼4.35
Media Library /wp-admin/upload.php1,778 ▲65.01 ▲0.01148.62 ▼42.62126.93 ▼9.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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 need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Forms admin page), #2 (Form builder), #3 (Form style options)
The official readme.txt is a good inspiration

pojo-forms/pojo-forms.php Passed 13 tests

Analyzing the main PHP file in "Pojo Forms" version 1.4.7
88 characters long description:
Pojo Forms allows you to create any form you want with a simple drag and drop interface.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,917 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP124031221,717
JavaScript45417200

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity14.33
▷ Minimum class complexity2.00
▷ Maximum class complexity71.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes18.33%
Methods58
▷ Static methods46.90%
▷ Public methods5391.38%
▷ Protected methods35.17%
▷ Private methods23.45%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants450.00%
▷ Class constants450.00%
▷ Public constants4100.00%

Plugin size 0% from 1 test

Image compression 0% from 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.52MB with 0.34MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png175.80KB61.73KB▼ 64.89%
screenshot-3.png180.11KB62.63KB▼ 65.22%
screenshot-1.png174.44KB61.24KB▼ 64.89%