83% pentryforms

Code Review | PentryForms - Lead Capture Software

WordPress plugin PentryForms - Lead Capture Software scored83%from 54 tests.

About plugin

  • Plugin page: pentryforms
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: May 19, 2021
  • Latest release: May 19, 2021
  • Number of updates: 7
  • Update frequency: every 1.0 days
  • Top authors: mortenkiril09 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /299 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.35MB] [CPU: ▼10.55ms] Passed 4 tests

An overview of server-side resources used by PentryForms - Lead Capture Software
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.26 ▼36.77
Dashboard /wp-admin3.31 ▲0.0148.20 ▼5.61
Posts /wp-admin/edit.php3.36 ▲0.0146.45 ▼1.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.24 ▲1.62
Media Library /wp-admin/upload.php3.23 ▲0.0139.44 ▲6.21

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 25 new files
Database: 1 new table, 6 new options
New tables
wp_plgxPentryForms_config
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

PentryForms - Lead Capture Software: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲8213.57 ▼0.661.81 ▼0.1149.28 ▲0.74
Dashboard /wp-admin2,208 ▲205.30 ▲0.45101.09 ▼17.0084.32 ▲40.86
Posts /wp-admin/edit.php2,109 ▲202.38 ▲0.3632.88 ▼4.7733.47 ▼2.77
Add New Post /wp-admin/post-new.php1,545 ▲3123.33 ▼0.07729.84 ▲52.3739.96 ▼10.24
Media Library /wp-admin/upload.php1,408 ▲294.51 ▲0.3195.92 ▼14.6980.27 ▲31.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/pentryforms/pentryforms.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in pentryforms/assets to your readme.txt
The official readme.txt might help

pentryforms/pentryforms.php 92% from 13 tests

"PentryForms - Lead Capture Software" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 189 characters long)

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
There were no executable files found in this plugin3,252 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
SVG40122,881
PHP113847367
CSS103713
JavaScript10101

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/themes/default/assets/images/flags.png27.46KB29.21KB0.00%
images/logo.png1.13KB0.27KB▼ 76.22%