78% pverify

Code Review | pVerify

WordPress plugin pVerify scored78%from 54 tests.

About plugin

  • Plugin page: pverify
  • Plugin version: 0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5.3
  • WordPress version: 6.3.1
  • First release: Dec 9, 2020
  • Latest release: Dec 20, 2020
  • Number of updates: 6
  • Update frequency: every 3.7 days
  • Top authors: gibbie99 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /355 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼1.02ms] Passed 4 tests

This is a short check of server-side resources used by pVerify
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.30 ▼2.20
Dashboard /wp-admin3.37 ▲0.0645.67 ▲2.18
Posts /wp-admin/edit.php3.48 ▲0.1244.10 ▼0.21
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.69 ▼3.50
Media Library /wp-admin/upload.php3.29 ▲0.0635.30 ▲1.83

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: 1 new table, 6 new options
New tables
wp_pverify_pl
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

pVerify: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲7414.44 ▲0.031.79 ▼0.0539.30 ▼1.85
Dashboard /wp-admin2,217 ▲375.60 ▼0.0789.50 ▼0.3539.31 ▼1.08
Posts /wp-admin/edit.php2,119 ▲192.02 ▲0.0138.96 ▼2.2934.33 ▼0.44
Add New Post /wp-admin/post-new.php1,543 ▲1522.98 ▼0.32593.64 ▼25.5670.87 ▼2.45
Media Library /wp-admin/upload.php1,416 ▲224.27 ▲0.06102.01 ▲3.4140.65 ▼0.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 take a closer look at the following
  • 5× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/pverify/includes/pVerify-db-config.php
    • > /wp-content/plugins/pverify/includes/view/admin/pVerify-auth.php
    • > /wp-content/plugins/pverify/includes/view/shortcodes/eligibility_widget.php
    • > /wp-content/plugins/pverify/includes/pVerify_Main.php
    • > /wp-content/plugins/pverify/includes/view/shortcodes/estimate_widget.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: err_msg in wp-content/plugins/pverify/includes/view/shortcodes/estimate_widget.php on line 9
    • > PHP Notice
      Undefined variable: err_msg in wp-content/plugins/pverify/includes/view/shortcodes/eligibility_widget.php on line 9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Donate link: Please fix this invalid URI: "later"
  • License uri: Please fix this invalid URI: "later"
The official readme.txt is a good inspiration

pverify/pVerify.php 92% from 13 tests

The main PHP script in "pVerify" version 0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pverify.php" instead of "pVerify.php")

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
Everything looks great! No dangerous files found in this plugin481 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP69473319
CSS20098
Markdown121038
JavaScript17026

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity13.00
▷ Minimum class complexity3.00
▷ Maximum class complexity23.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods526.32%
▷ Public methods1894.74%
▷ Protected methods15.26%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected