78% ve-ads-manager

Code Review | VE Ads Manager

WordPress plugin VE Ads Manager scored78%from 54 tests.

About plugin

  • Plugin page: ve-ads-manager
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.5
  • WordPress version: 6.3.1
  • First release: Dec 9, 2016
  • Latest release: Apr 6, 2018
  • Number of updates: 4
  • Update frequency: every 119.0 days
  • Top authors: virtualemployee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /865 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.14MB] [CPU: ▼13.70ms] Passed 4 tests

A check of server-side resources used by VE Ads Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.10 ▼6.59
Dashboard /wp-admin3.36 ▲0.0252.00 ▼14.36
Posts /wp-admin/edit.php3.41 ▲0.0650.81 ▲2.12
Add New Post /wp-admin/post-new.php5.19 ▼0.7065.82 ▼34.82
Media Library /wp-admin/upload.php3.28 ▲0.0641.23 ▲0.98
VE Ads Manager /wp-admin/options-general.php?page=ve-ads-manager3.2331.16

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

VE Ads Manager: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7314.74 ▲0.521.86 ▲0.0844.88 ▲1.20
Dashboard /wp-admin2,225 ▲194.88 ▼1.03107.60 ▼8.4741.54 ▲0.27
Posts /wp-admin/edit.php2,104 ▲42.14 ▲0.0941.83 ▲0.0241.48 ▲2.78
Add New Post /wp-admin/post-new.php1,548 ▲2223.23 ▲5.51676.36 ▲5.5167.88 ▲10.92
Media Library /wp-admin/upload.php1,401 ▲44.21 ▲0.01105.11 ▼8.3943.40 ▼5.16
VE Ads Manager /wp-admin/options-general.php?page=ve-ads-manager1,0062.0123.2346.65

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ve-ads-manager
    • > Warning in wp-content/plugins/ve-ads-manager/ve-ads-manager.php+68
    in_array() expects parameter 2 to be array, bool given

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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/ve-ads-manager/lib/class.php:154

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 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
Please take inspiration from this readme.txt

ve-ads-manager/ve-ads-manager.php 92% from 13 tests

The main PHP file in "VE Ads Manager" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin362 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23265362

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions12
▷ Named functions12100.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
There are no PNG files in this plugin