94% reenio

Code Review | reenio

WordPress plugin reenio scored 94% from 54 tests.

About plugin

  • Plugin page: reenio
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 5.8.1
  • First release: Jan 20, 2020
  • Latest release: Nov 9, 2021
  • Number of updates: 19
  • Update frequency: every 34.9 days
  • Top authors: garvis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 633 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by reenio
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.0433.73 ▲6.85
Dashboard /wp-admin3.11 ▲0.0543.06 ▲5.78
Posts /wp-admin/edit.php3.17 ▲0.0541.70 ▼2.99
Add New Post /wp-admin/post-new.php5.47 ▲0.0391.25 ▼560.80
Media Library /wp-admin/upload.php3.06 ▲0.0534.55 ▲3.43

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

reenio: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,699 ▲10315.77 ▲0.209.99 ▼0.5044.45 ▼1.40
Dashboard /wp-admin2,993 ▲625.89 ▼0.17137.64 ▲0.65110.98 ▼4.58
Posts /wp-admin/edit.php2,759 ▲202.71 ▼0.0160.04 ▼3.4687.94 ▼5.50
Add New Post /wp-admin/post-new.php1,885 ▲38519.18 ▲0.37382.23 ▼7.51108.43 ▲1.96
Media Library /wp-admin/upload.php1,827 ▲205.02 ▲0.01137.60 ▼6.89115.87 ▼1.89

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/reenio/reenio-option-page.php:200
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reenio/reenio.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: reenio, reservation, reservation system

reenio/reenio.php Passed 13 tests

Analyzing the main PHP file in "reenio" version 1.6
77 characters long description:
Plug-in for embedding of reservation system reenio into the web presentation.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin238 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25130193
PO File1131645

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected