84% ricerca-barcheyachtit

Code Review | Ricerca vacanze in barca

WordPress plugin Ricerca vacanze in barca scored84%from 54 tests.

About plugin

  • Plugin page: ricerca-barcheyac...
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9.1
  • WordPress version: 6.3.1
  • First release: Feb 19, 2014
  • Latest release: Feb 17, 2015
  • Number of updates: 51
  • Update frequency: every 7.1 days
  • Top authors: joined93 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /737 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Ricerca vacanze in barca
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0346.83 ▲0.86
Dashboard /wp-admin3.33 ▼0.0255.78 ▼11.28
Posts /wp-admin/edit.php3.38 ▲0.0254.02 ▼1.13
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.46 ▼19.56
Media Library /wp-admin/upload.php3.26 ▲0.0240.30 ▲2.87

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Ricerca vacanze in barca
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲13914.09 ▼0.1618.23 ▲16.3291.57 ▲51.44
Dashboard /wp-admin2,195 ▲185.54 ▼0.0785.77 ▼19.0940.53 ▲0.18
Posts /wp-admin/edit.php2,103 ▼02.01 ▼0.0040.68 ▲1.9536.25 ▼0.44
Add New Post /wp-admin/post-new.php1,532 ▲623.33 ▲0.22611.73 ▼98.6656.21 ▲3.49
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.01103.50 ▼7.3844.60 ▼4.47

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_wpb_widget
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ricerca-barcheyachtit/research_by.php:26

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === ricerca-barcheyachtit === )
The official readme.txt might help

ricerca-barcheyachtit/research_by.php 92% from 13 tests

Analyzing the main PHP file in "Ricerca vacanze in barca" version 1.8
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ricerca-barcheyachtit.php" instead of "research_by.php")

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
Good job! No executable or dangerous file extensions detected483 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS13412236
JavaScript41915142
PHP11924105

PHP code Passed 2 tests

An overview 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.08
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon_quanti.png1.76KB0.73KB▼ 58.79%
images/icon_quando.png1.58KB0.60KB▼ 62.00%
images/icon_barca.png1.59KB0.59KB▼ 63.11%
images/icon_dove.png1.93KB0.79KB▼ 58.89%