84% zero-parallel-form

Code Review | Zero Parallel Form

WordPress plugin Zero Parallel Form scored 84% from 54 tests.

About plugin

  • Plugin page: zero-parallel-form
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.4.1
  • WordPress version: 6.3.1
  • First release: Jan 30, 2016
  • Latest release: Jan 30, 2016
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: Mekhanik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 529 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.82ms] Passed 4 tests

Server-side resources used by Zero Parallel Form
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.26 ▲2.19
Dashboard /wp-admin3.32 ▲0.0150.56 ▲0.93
Posts /wp-admin/edit.php3.37 ▲0.0145.39 ▼7.33
Add New Post /wp-admin/post-new.php5.90 ▲0.0198.55 ▼32.89
Media Library /wp-admin/upload.php3.24 ▲0.0136.67 ▼0.00

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Zero Parallel Form: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6813.23 ▼1.354.76 ▲2.9644.09 ▲6.19
Dashboard /wp-admin2,209 ▲244.85 ▼0.99111.24 ▲3.8641.46 ▼4.70
Posts /wp-admin/edit.php2,089 ▼01.99 ▲0.0236.29 ▼4.9932.80 ▼2.69
Add New Post /wp-admin/post-new.php1,523 ▼523.49 ▲5.00633.06 ▲24.7051.77 ▲1.48
Media Library /wp-admin/upload.php1,385 ▼34.31 ▲0.11102.78 ▲3.0243.78 ▲1.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 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 50% from 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/zero-parallel-form/zero-parallel-form.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: loan, installment, affiliate network, zero parallel, zeroparallel...

zero-parallel-form/zero-parallel-form.php 92% from 13 tests

This is the main PHP file of "Zero Parallel Form" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: A good plugin description is longer than 10 characters (currently 9 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin82 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1161055
JavaScript17327

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
zp_favicon.png1.02KB0.23KB▼ 77.79%