72% wp-vero

Code Review | WP Vero

WordPress plugin WP Vero scored72%from 54 tests.

About plugin

  • Plugin page: wp-vero
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Jul 11, 2014
  • Latest release: Jul 12, 2014
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: damienbrz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /985 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.00MB] [CPU: ▼6.41ms] Passed 4 tests

Analyzing server-side resources used by WP Vero
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.84 ▲0.01
Dashboard /wp-admin3.31 ▲0.0148.68 ▼3.98
Posts /wp-admin/edit.php3.36 ▲0.0050.39 ▼0.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.17 ▼17.94
Media Library /wp-admin/upload.php3.23 ▲0.0033.11 ▼3.10
Vero Settings /wp-admin/options-general.php?page=Vero_Settings3.2530.89

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP Vero: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.24 ▼1.142.64 ▲0.8143.05 ▼0.97
Dashboard /wp-admin2,213 ▲224.86 ▲0.00111.49 ▲1.2542.22 ▼3.44
Posts /wp-admin/edit.php2,090 ▼22.02 ▲0.0336.35 ▼5.3533.84 ▼3.00
Add New Post /wp-admin/post-new.php1,536 ▲323.06 ▼0.33663.10 ▲0.5765.53 ▲10.78
Media Library /wp-admin/upload.php1,389 ▲44.24 ▼0.0399.61 ▼0.9243.68 ▼0.30
Vero Settings /wp-admin/options-general.php?page=Vero_Settings9422.0222.2029.69

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=Vero_Settings
    • > Notice in wp-content/plugins/wp-vero/wpvero_admin_config.php+2
    Undefined index: wpvero_hidden

SRP 0% 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
Please fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-vero/wpvero_snippet_event.php
    • > /wp-content/plugins/wp-vero/wpvero_snippet_library.php
    • > /wp-content/plugins/wp-vero/wpvero_snippet_identify.php
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: identity in wp-content/plugins/wp-vero/wpvero_snippet_identify.php on line 2
    • > PHP Notice
      Undefined variable: event in wp-content/plugins/wp-vero/wpvero_snippet_event.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-vero/wp-vero.php:31
    • > PHP Notice
      Undefined index: wpvero_hidden in wp-content/plugins/wp-vero/wpvero_admin_config.php on line 2
    • > PHP Notice
      Undefined variable: ignore in wp-content/plugins/wp-vero/wpvero_snippet_library.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-vero/wpvero_admin_config.php:21
    • > PHP Notice
      Undefined variable: api_key in wp-content/plugins/wp-vero/wpvero_snippet_library.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wp-vero === )
Please take inspiration from this readme.txt

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

The entry point to "WP Vero" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 156 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
Everything looks great! No dangerous files found in this plugin234 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP52969230
Markdown1204

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity10.50
▷ Minimum class complexity3.00
▷ Maximum class complexity18.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods330.00%
▷ Public methods10100.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 Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin