84% outdr-booking-widget

Code Review | Outdr Widget

WordPress plugin Outdr Widget scored84%from 54 tests.

About plugin

  • Plugin page: outdr-booking-widget
  • Plugin version: 0.1.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.2
  • WordPress version: 6.3.1
  • First release: May 7, 2019
  • Latest release: Feb 14, 2020
  • Number of updates: 14
  • Update frequency: every 20.5 days
  • Top authors: chillitom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /570 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Outdr Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.93 ▼9.17
Dashboard /wp-admin3.38 ▲0.0753.34 ▲6.10
Posts /wp-admin/edit.php3.43 ▲0.0749.98 ▲2.42
Add New Post /wp-admin/post-new.php5.96 ▲0.0788.38 ▼5.17
Media Library /wp-admin/upload.php3.31 ▲0.0736.87 ▲1.71
Outdr /wp-admin/options-general.php?page=outdr3.2831.78

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Outdr Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8616.00 ▲1.4751.24 ▲49.4541.19 ▼3.56
Dashboard /wp-admin2,210 ▲194.84 ▼0.07115.16 ▲9.9142.52 ▼1.13
Posts /wp-admin/edit.php2,090 ▲12.00 ▼0.0536.09 ▼0.6331.09 ▼3.21
Add New Post /wp-admin/post-new.php1,535 ▼023.20 ▼0.01636.41 ▼25.8755.08 ▼3.66
Media Library /wp-admin/upload.php1,392 ▲104.27 ▲0.0794.51 ▼1.4941.40 ▼0.77
Outdr /wp-admin/options-general.php?page=outdr9842.1927.3430.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Outdr\\add_action() in wp-content/plugins/outdr-booking-widget/outdr-widget.php:303

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: sport, adventure, holiday, booking, outdr

outdr-booking-widget/outdr-widget.php 92% from 13 tests

"Outdr Widget" version 0.1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("outdr-booking-widget.php" instead of "outdr-widget.php")

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
Good job! No executable or dangerous file extensions detected260 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1409258
CSS1011
JavaScript1011

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.06
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
Namespaces1
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
outdr_logo.png25.69KB6.52KB▼ 74.62%