83% pvn-auth-popup

Code Review | PVN Auth Popup

WordPress plugin PVN Auth Popup scored83%from 54 tests.

About plugin

  • Plugin page: pvn-auth-popup
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 18, 2017
  • Latest release: Feb 18, 2017
  • Number of updates: 5
  • Update frequency: every 9.0 days
  • Top authors: pawandev (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,383 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.83ms] Passed 4 tests

An overview of server-side resources used by PVN Auth Popup
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1139.63 ▲1.05
Dashboard /wp-admin3.41 ▲0.0645.30 ▼16.68
Posts /wp-admin/edit.php3.52 ▲0.1645.20 ▲3.71
Add New Post /wp-admin/post-new.php6.01 ▲0.1294.94 ▼6.35
Media Library /wp-admin/upload.php3.33 ▲0.1035.18 ▼1.33

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

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

Browser metrics Passed 4 tests

Checking browser requirements for PVN Auth Popup
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲18913.64 ▼0.9510.50 ▲8.6144.92 ▲0.45
Dashboard /wp-admin2,228 ▲405.90 ▲0.8397.37 ▼18.8473.97 ▲29.24
Posts /wp-admin/edit.php2,114 ▲252.04 ▼0.0138.17 ▲0.6333.74 ▲1.83
Add New Post /wp-admin/post-new.php1,685 ▲14122.53 ▲4.31709.76 ▲91.1450.82 ▼6.87
Media Library /wp-admin/upload.php1,410 ▲194.26 ▲0.0496.99 ▼5.0778.93 ▲37.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/pvn-auth-popup/index.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Please delete some tags, you are using 20 tag instead of maximum 10
  • Screenshots: Please add images for these screenshots: #1 (Login form.), #2 (Registration form.), #3 (Forgot password form.), #4 (All fields required.), #5 (Error form.), #6 (settings on WP Dashboard.), #7 (settings on WP Dashboard.)
Please take inspiration from this readme.txt

pvn-auth-popup/index.php 92% from 13 tests

Analyzing the main PHP file in "PVN Auth Popup" version 1.0.0
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pvn-auth-popup.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,277 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31581281,166
PHP49330679
CSS2120256
HTML11320176

PHP code Passed 2 tests

An overview 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.38
Average class complexity23.50
▷ Minimum class complexity4.00
▷ Maximum class complexity49.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 0.69MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png121.31KB59.51KB▼ 50.94%
assets/images/logo_128.png13.36KB4.82KB▼ 63.93%
screenshot-5.png61.64KB18.64KB▼ 69.76%
assets/images/pvnap_250.png25.45KB8.81KB▼ 65.39%
assets/images/logo_16_old.png0.93KB0.90KB▼ 2.85%