84% easy-store-vacation

Code Review | Easy Store Vacation

WordPress plugin Easy Store Vacation scored84%from 54 tests.

About plugin

  • Plugin page: easy-store-vacation
  • Plugin version: 1.1.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.0
  • WordPress version: 6.3.1
  • First release: Dec 18, 2020
  • Latest release: Jul 4, 2022
  • Number of updates: 23
  • Update frequency: every 24.4 days
  • Top authors: samuilmarinov (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /2,353 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.14ms] Passed 4 tests

Server-side resources used by Easy Store Vacation
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0840.63 ▲3.34
Dashboard /wp-admin3.37 ▲0.0747.00 ▼5.54
Posts /wp-admin/edit.php3.49 ▲0.1350.90 ▲1.36
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.33 ▼19.71
Media Library /wp-admin/upload.php3.30 ▲0.0743.84 ▲6.03

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Store Vacation
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11513.47 ▼1.247.64 ▲6.0343.96 ▲4.16
Dashboard /wp-admin2,202 ▲305.62 ▼0.04116.59 ▲11.4752.34 ▲10.93
Posts /wp-admin/edit.php2,104 ▲72.03 ▲0.0440.15 ▲0.5736.70 ▼2.25
Add New Post /wp-admin/post-new.php1,530 ▲423.01 ▼0.15673.93 ▼25.2456.54 ▼2.59
Media Library /wp-admin/upload.php1,401 ▲14.22 ▲0.09111.96 ▲0.4048.13 ▼0.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/easy-store-vacation/admin/partials/easy_store_vacation-admin-display.php
    • > /wp-content/plugins/easy-store-vacation/public/partials/easy_store_vacation-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: store vacation, shop vacation, vacation mode, vacation, easy store vacation...

easy-store-vacation/easy_store_vacation.php 85% from 13 tests

The primary PHP file in "Easy Store Vacation" version 1.1.6 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("easy-store-vacation.php" instead of "easy_store_vacation.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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
There were no executable files found in this plugin300 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12105532291
JavaScript24546
CSS2083

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin