84% indexic-areservation

Code Review | indexic aReservation

WordPress plugin indexic aReservation scored84%from 54 tests.

About plugin

  • Plugin page: indexic-areservation
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Sep 4, 2020
  • Latest release: Sep 4, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: indexicmf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /495 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.17ms] Passed 4 tests

An overview of server-side resources used by indexic aReservation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0242.03 ▼0.50
Dashboard /wp-admin3.32 ▲0.0254.85 ▲5.06
Posts /wp-admin/edit.php3.38 ▲0.0254.73 ▲3.06
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.69 ▼7.92
Media Library /wp-admin/upload.php3.25 ▲0.0239.03 ▲0.69
aReservation /wp-admin/options-general.php?page=indexic-areservation3.2239.62

Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
areservation_options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for indexic aReservation
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲14413.37 ▼1.3511.03 ▲9.3243.84 ▼2.72
Dashboard /wp-admin2,196 ▲255.62 ▲0.0194.36 ▼3.3537.47 ▼5.48
Posts /wp-admin/edit.php2,104 ▲12.01 ▼0.0137.67 ▼1.5538.23 ▲4.35
Add New Post /wp-admin/post-new.php1,531 ▲322.88 ▼0.11699.65 ▲78.6751.18 ▲2.03
Media Library /wp-admin/upload.php1,404 ▲44.26 ▲0.13105.54 ▼17.6643.80 ▼0.88
aReservation /wp-admin/options-general.php?page=indexic-areservation3,7232.3777.6377.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

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)
The smoke test was a success, however most plugin functionality was not tested

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-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/indexic-areservation/indexic-areservation.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === indexic-areservation === )
You can look at the official readme.txt

indexic-areservation/indexic-areservation.php Passed 13 tests

The entry point to "indexic aReservation" version 1.3.1 is a PHP file that has certain tags in its header comment area
134 characters long description:
Easily integrate Indexic's aReservation Tour Booking and Rental Reservation Software (3rd party software) into your WordPress website.

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
There were no executable files found in this plugin703 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP212328352
CSS26314213
JavaScript210922138

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity11.00
▷ Minimum method complexity6.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions330.00%
▷ Anonymous functions770.00%
Constants1
▷ Global constants1100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/logo.png5.08KB5.16KB0.00%