84% papion-ajax-regvalidation

Code Review | Papion Ajax Registration Form Validation

WordPress plugin Papion Ajax Registration Form Validation scored84%from 54 tests.

About plugin

  • Plugin page: papion-ajax-regva...
  • Plugin version: 0.9
  • PHP compatiblity: 5.6.32+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.3-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 15, 2017
  • Latest release: Dec 15, 2017
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: agm65 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server-side resources used by Papion Ajax Registration Form Validation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.42 ▲5.10
Dashboard /wp-admin3.32 ▲0.0144.71 ▼5.82
Posts /wp-admin/edit.php3.37 ▲0.0146.37 ▼5.27
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.03 ▼6.14
Media Library /wp-admin/upload.php3.24 ▲0.0136.50 ▲2.90

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Papion Ajax Registration Form Validation
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4513.19 ▼1.601.74 ▼0.4140.34 ▼10.74
Dashboard /wp-admin2,203 ▲185.79 ▼0.0598.91 ▼18.8139.18 ▼6.04
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0337.94 ▲1.6333.66 ▼0.28
Add New Post /wp-admin/post-new.php1,520 ▼023.18 ▲0.04643.05 ▼49.9147.27 ▼6.33
Media Library /wp-admin/upload.php1,382 ▼64.13 ▼0.1695.98 ▼3.4641.82 ▼5.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/papion-ajax-regvalidation/papion-ajax-regvalidation.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

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
3 plugin tags: ajax, registration, validation

papion-ajax-regvalidation/papion-ajax-regvalidation.php 92% from 13 tests

The entry point to "Papion Ajax Registration Form Validation" version 0.9 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin71 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript10038
PHP17920
Markdown19013

PHP code Passed 2 tests

A short 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.36
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%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.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
No PNG files were detected