84% event-organiser-vat

Code Review | Event Organiser VAT

WordPress plugin Event Organiser VAT scored84%from 54 tests.

About plugin

  • Plugin page: event-organiser-vat
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.8
  • WordPress version: 6.3.1
  • First release: Jan 6, 2014
  • Latest release: Oct 11, 2018
  • Number of updates: 12
  • Update frequency: every 145.5 days
  • Top authors: stephenharris (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,596 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▲0.49ms] Passed 4 tests

An overview of server-side resources used by Event Organiser VAT
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.70 ▼1.11
Dashboard /wp-admin3.34 ▲0.0353.30 ▲3.03
Posts /wp-admin/edit.php3.39 ▲0.0346.98 ▲2.46
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.10 ▼2.43
Media Library /wp-admin/upload.php3.26 ▲0.0339.25 ▲4.49

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Event Organiser VAT
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼1.181.77 ▲0.0144.52 ▲5.05
Dashboard /wp-admin2,206 ▲185.85 ▲0.9396.59 ▼5.3142.76 ▲0.83
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0035.04 ▲1.5835.45 ▲3.30
Add New Post /wp-admin/post-new.php1,533 ▲1423.40 ▲0.23657.34 ▼27.0449.66 ▼9.36
Media Library /wp-admin/upload.php1,391 ▲64.15 ▲0.03100.22 ▼10.0841.42 ▼5.14

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/event-organiser-vat/includes/vat.php:77
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/event-organiser-vat/event-organiser-vat.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/event-organiser-vat/admin/settings.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
No tags were detected

event-organiser-vat/event-organiser-vat.php 92% from 13 tests

Analyzing the main PHP file in "Event Organiser VAT" version 1.0.6
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected204 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP348108129
Markdown120033
JavaScript2121321
PO File13821

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin