84% wc-persona-verify

Code Review | Check With Persona Verified

WordPress plugin Check With Persona Verified scored84%from 54 tests.

About plugin

  • Plugin page: wc-persona-verify
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 30, 2020
  • Latest release: Jan 10, 2021
  • Number of updates: 5
  • Update frequency: every 32.8 days
  • Top authors: cristianr909090 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /433 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.52ms] Passed 4 tests

Analyzing server-side resources used by Check With Persona Verified
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.20 ▲0.36
Dashboard /wp-admin3.34 ▲0.0344.91 ▼3.91
Posts /wp-admin/edit.php3.39 ▲0.0344.56 ▼5.33
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.84 ▼13.19
Media Library /wp-admin/upload.php3.26 ▲0.0334.33 ▲3.00

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Check With Persona Verified
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,933 ▲19815.30 ▲0.929.99 ▲8.0742.70 ▼5.20
Dashboard /wp-admin2,225 ▲345.96 ▲1.0898.98 ▼4.0466.19 ▲22.08
Posts /wp-admin/edit.php2,120 ▲312.61 ▲0.6040.85 ▲2.7732.71 ▼0.39
Add New Post /wp-admin/post-new.php1,545 ▲3123.60 ▲6.11710.97 ▲49.5345.80 ▼7.01
Media Library /wp-admin/upload.php1,419 ▲374.99 ▲0.78100.83 ▲1.4969.08 ▲27.38

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wc-persona-verify/wc-persona-verify.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: woocommerce, checkout, id verify, persona

wc-persona-verify/wc-persona-verify.php 92% from 13 tests

The principal PHP file in "Check With Persona Verified" v. 1.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 373 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin216 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP34355156
JavaScript18149
CSS10010
SVG1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions11
▷ Named functions11100.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
No PNG images were found in this plugin