94% verifyne

Code Review | Verifyne

WordPress plugin Verifyne scored 94% from 54 tests.

About plugin

  • Plugin page: verifyne
  • Plugin version: 0.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.4.2
  • WordPress version: 5.8.1
  • First release: Feb 9, 2016
  • Latest release: Feb 10, 2016
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: sruester (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 680 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.12MB] [CPU: ▼147.37ms] Passed 4 tests

Server-side resources used by Verifyne
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.94 ▲0.2238.11 ▲14.77
Dashboard /wp-admin3.17 ▲0.1150.67 ▲0.67
Posts /wp-admin/edit.php3.28 ▲0.1753.36 ▲3.33
Add New Post /wp-admin/post-new.php5.52 ▲0.0996.27 ▼594.51
Media Library /wp-admin/upload.php3.11 ▲0.1138.79 ▲1.02
Verifyne /wp-admin/options-general.php?page=verifyne3.0831.37

Server storage [IO: ▲0.05MB] [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: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Verifyne
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,690 ▲9415.77 ▲0.389.26 ▼1.5550.25 ▼2.94
Dashboard /wp-admin2,978 ▲475.94 ▼0.21145.26 ▼13.54120.74 ▲3.28
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0069.11 ▼3.7491.77 ▼9.74
Add New Post /wp-admin/post-new.php1,686 ▲7118.80 ▼2.74388.24 ▲86.42117.70 ▲1.58
Media Library /wp-admin/upload.php1,812 ▲55.03 ▼0.09173.58 ▲16.14130.47 ▲5.44
Verifyne /wp-admin/options-general.php?page=verifyne1,0872.2259.0478.05

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 6× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/verifyne/vf_register_page.php
    • > /wp-content/plugins/verifyne/wp-verifyne.php
    • > /wp-content/plugins/verifyne/vf_verifyne_api.php
    • > /wp-content/plugins/verifyne/vf_admin_settings.php
    • > /wp-content/plugins/verifyne/vf_user_profile.php
    • > /wp-content/plugins/verifyne/vf_login_page.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: security, password, login

verifyne/wp-verifyne.php 92% from 13 tests

"Verifyne" version 0.3.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("verifyne.php" instead of "wp-verifyne.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin565 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP6211216483
CSS15043
JavaScript141039

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity14.50
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity3.61
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods31
▷ Static methods516.13%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
vf_button_login.png14.05KB6.71KB▼ 52.22%