83% pvdnet

Code Review | pvdnet

WordPress plugin pvdnet scored83%from 54 tests.

About plugin

  • Plugin page: pvdnet
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.3-5.0.3
  • WordPress version: 6.3.1
  • First release: Mar 10, 2019
  • Latest release: Mar 11, 2019
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: folivei (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /542 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.91ms] Passed 4 tests

An overview of server-side resources used by pvdnet
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.45 ▼4.49
Dashboard /wp-admin3.32 ▲0.0148.74 ▼3.28
Posts /wp-admin/edit.php3.37 ▲0.0149.58 ▲2.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.35 ▲0.76
Media Library /wp-admin/upload.php3.24 ▲0.0137.69 ▼0.62

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for pvdnet
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.33 ▼0.931.64 ▼0.5739.80 ▼8.07
Dashboard /wp-admin2,209 ▲244.83 ▼0.25108.57 ▼6.0438.86 ▼6.44
Posts /wp-admin/edit.php2,092 ▲62.01 ▼0.0338.69 ▲3.2536.03 ▲1.49
Add New Post /wp-admin/post-new.php1,533 ▲1423.00 ▼0.23606.77 ▼77.6850.86 ▼10.76
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0493.22 ▼12.7039.67 ▼5.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pvdnet/pvdnet.php:106

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === pvdnet === )
  • Contributors: Plugin contributors not specified
The official readme.txt is a good inspiration

pvdnet/pvdnet.php 92% from 13 tests

The main file in "pvdnet" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 166 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected78 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1151378

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code1.25
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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