78% vd-settings

Code Review | Viaduct Essential Options

WordPress plugin Viaduct Essential Options scored78%from 54 tests.

About plugin

  • Plugin page: vd-settings
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 12, 2018
  • Latest release: Feb 12, 2018
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: viaductpro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /554 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 gracefully, with no errors

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

An overview of server-side resources used by Viaduct Essential Options
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.18 ▼4.60
Dashboard /wp-admin3.38 ▲0.0755.72 ▲5.48
Posts /wp-admin/edit.php3.49 ▲0.1449.23 ▼1.17
Add New Post /wp-admin/post-new.php5.98 ▲0.0994.06 ▼0.05
Media Library /wp-admin/upload.php3.30 ▲0.0740.53 ▲6.05

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Viaduct Essential Options
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲1113.28 ▼1.003.96 ▲2.0643.05 ▲3.03
Dashboard /wp-admin2,206 ▲295.54 ▲0.0295.77 ▲3.6944.50 ▲0.10
Posts /wp-admin/edit.php2,119 ▲222.22 ▲0.2235.32 ▼3.0230.70 ▼8.00
Add New Post /wp-admin/post-new.php1,535 ▲723.35 ▲0.21658.09 ▲52.1247.34 ▼3.17
Media Library /wp-admin/upload.php1,421 ▲214.35 ▲0.1698.59 ▼3.4243.88 ▲1.46
Essential Options /wp-admin/vd-essential-options.php260.420.0813.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/vd-settings/views/form.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'vdeo\\controllers\\PluginController' not found in wp-content/plugins/vd-settings/controllers/OptionsController.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'vdeo\\controllers\\PluginController' not found in wp-content/plugins/vd-settings/config/config.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/vd-essential-options.php
    • > Network (severe)
    wp-admin/vd-essential-options.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: options

vd-settings/bootstrap.php 77% from 13 tests

Analyzing the main PHP file in "Viaduct Essential Options" version 1.0
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 147 characters long)
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: Name the main plugin file the same as the plugin slug ("vd-settings.php" instead of "bootstrap.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 plugin599 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP68416487
CSS117094
JavaScript12018

PHP code Passed 2 tests

Analyzing 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.35
Average class complexity11.00
▷ Minimum class complexity2.00
▷ Maximum class complexity18.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods312.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions19.09%
▷ Anonymous functions1090.91%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
There are no PNG files in this plugin