64% yachtino-boat-listing

Code Review | Yachtino boat listing

WordPress plugin Yachtino boat listing scored64%from 54 tests.

About plugin

  • Plugin page: yachtino-boat-lis...
  • Plugin version: 1.4.6
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 4, 2023
  • Latest release: Sep 17, 2023
  • Number of updates: 23
  • Update frequency: every 7.2 days
  • Top authors: yachtino (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /408 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.67ms] Passed 4 tests

A check of server-side resources used by Yachtino boat listing
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0047.54 ▲10.92
Dashboard /wp-admin3.31 ▼0.0444.30 ▼17.47
Posts /wp-admin/edit.php3.36 ▲0.0045.11 ▼4.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.69 ▼17.04
Media Library /wp-admin/upload.php3.23 ▲0.0036.82 ▲4.14

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Yachtino boat listing
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.16 ▼1.051.80 ▼0.0343.21 ▲1.36
Dashboard /wp-admin2,203 ▲115.85 ▲0.8796.81 ▼13.0040.42 ▼0.29
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0340.51 ▼0.5935.69 ▼1.02
Add New Post /wp-admin/post-new.php1,547 ▲2423.24 ▼0.08648.60 ▲39.5770.29 ▲15.01
Media Library /wp-admin/upload.php1,385 ▼04.24 ▲0.00108.17 ▲12.8048.99 ▲4.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Parse error in wp-content/plugins/yachtino-boat-listing/includes/api/class-yachtino-library.php+105
    syntax error, unexpected '|', expecting variable (T_VARIABLE)
  • The plugin did not uninstall correctly, leaving 90 files (1.13MB) in the plugin directory
    • (new file) assets/css/origin/jquery-ui.theme.css
    • (new file) assets/css/origin/yachtino-gallery-raw.css
    • (new file) assets/css/origin/yachtino-admin-raw.css
    • (new file) assets/css/origin/jquery-ui.structure.css
    • (new file) assets/images/calendar/ui-icons_444444_256x240.png
    • (new file) assets/css/origin/yachtino-public-raw.css
    • (new file) assets/css/yachtino-admin.css
    • (new file) assets/css/origin/yachtino-shared-raw.css
    • (new file) assets/css/origin/jquery-ui.css
    • (new file) assets/css/yachtino-public.css
    • ...
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • recovery_mode_email_last_sent
    • widget_recent-comments
    • db_upgraded

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
Good news, no errors were detected

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 take a closer look at the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Parse error
      syntax error, unexpected ')', expecting variable (T_VARIABLE) in wp-content/plugins/yachtino-boat-listing/includes/basics/class-yachtino-router.php on line 173
    • > PHP Parse error
      syntax error, unexpected ')', expecting variable (T_VARIABLE) in wp-content/plugins/yachtino-boat-listing/templates/public/yachtino-template-helper.php on line 122
    • > PHP Parse error
      syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/yachtino-boat-listing/includes/api/class-yachtino-library.php on line 105
    • > PHP Parse error
      syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/yachtino-boat-listing/includes/basics/class-yachtino-loader.php on line 69

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt is a good inspiration

yachtino-boat-listing/yachtino-boat-listing.php Passed 13 tests

"Yachtino boat listing" version 1.4.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
123 characters long description:
Display your boats and yachts for sale from yachtall.com or yacht charter offers from happycharter.com in your own website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin15,840 lines of code in 69 files:
LanguageFilesBlank linesComment linesLines of code
PHP181,0888895,903
PO File121,6682,0403,657
CSS93401472,399
JavaScript82151942,150
HTML225801,731

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity73.20
▷ Minimum class complexity1.00
▷ Maximum class complexity318.00
Average method complexity7.26
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods172
▷ Static methods6236.05%
▷ Public methods11164.53%
▷ Protected methods00.00%
▷ Private methods6135.47%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/calendar/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%
assets/images/calendar/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%
assets/images/calendar/ui-icons_cc0000_256x240.png4.44KB4.17KB▼ 6.02%
assets/images/calendar/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%
assets/images/calendar/ui-icons_777620_256x240.png4.44KB4.17KB▼ 6.02%