88% icoach-motore-di-ricerca-sul-coaching

Code Review | iCoach - Motore di Ricerca sul Coaching

WordPress plugin iCoach - Motore di Ricerca sul Coaching scored 88% from 54 tests.

About plugin

  • Plugin page: icoach-motore-di-...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.7
  • WordPress version: 5.8.1
  • First release: May 4, 2018
  • Latest release: Mar 4, 2021
  • Number of updates: 31
  • Update frequency: every 33.4 days
  • Top authors: prometeocoaching (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 477 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼150.72ms] Passed 4 tests

Analyzing server-side resources used by iCoach - Motore di Ricerca sul Coaching
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.82 ▲0.1029.07 ▼17.27
Dashboard /wp-admin3.15 ▲0.1055.12 ▼9.16
Posts /wp-admin/edit.php3.20 ▲0.0950.89 ▼11.20
Add New Post /wp-admin/post-new.php5.51 ▲0.0898.21 ▼565.25
Media Library /wp-admin/upload.php3.09 ▲0.0940.62 ▲3.85
Info Plugin /wp-admin/admin.php?page=icoach-motore-di-ricerca-sul-coaching/icoach.php/Info3.0628.88
iCoach /wp-admin/admin.php?page=icoach-motore-di-ricerca-sul-coaching/icoach.php3.0634.61
Opzioni Plugin /wp-admin/admin.php?page=icoach-motore-di-ricerca-sul-coaching/icoach.php/Opzioni3.0637.28

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

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

Browser metrics Passed 4 tests

Checking browser requirements for iCoach - Motore di Ricerca sul Coaching
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,910 ▲29715.96 ▼0.0511.55 ▼2.8475.41 ▲16.97
Dashboard /wp-admin3,153 ▲2275.95 ▼0.02158.60 ▼11.18126.15 ▲1.26
Posts /wp-admin/edit.php2,808 ▲692.59 ▼0.1379.67 ▲3.4977.84 ▼14.88
Add New Post /wp-admin/post-new.php3,835 ▲2,15220.43 ▲4.01492.41 ▲57.11130.11 ▲8.42
Media Library /wp-admin/upload.php1,890 ▲835.00 ▼0.04153.77 ▼10.40118.82 ▼3.27
Info Plugin /wp-admin/admin.php?page=icoach-motore-di-ricerca-sul-coaching/icoach.php/Info1,1382.0969.8452.63
iCoach /wp-admin/admin.php?page=icoach-motore-di-ricerca-sul-coaching/icoach.php1,85110.87315.57121.59
Opzioni Plugin /wp-admin/admin.php?page=icoach-motore-di-ricerca-sul-coaching/icoach.php/Opzioni1,1152.0965.9548.71

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/icoach-motore-di-ricerca-sul-coaching/icoach.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=icoach-motore-di-ricerca-sul-coaching/icoach.php
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=icoach-motore-di-ricerca-sul-coaching%2Ficoach.php - Access to XMLHttpRequest at 'https://www.scuoladicoaching.net/Search/data.json' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    • > GET request to /wp-admin/admin.php?page=icoach-motore-di-ricerca-sul-coaching/icoach.php
    • > Network (severe)
    https://www.scuoladicoaching.net/Search/data.json - Failed to load resource: net::ERR_FAILED

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
10 plugin tags: mentoring, scuola di coaching, coaching, corso di coaching, pnl...

icoach-motore-di-ricerca-sul-coaching/icoach.php 85% from 13 tests

The main PHP script in "iCoach - Motore di Ricerca sul Coaching" version 1.0.2 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("icoach-motore-di-ricerca-sul-coaching.php" instead of "icoach.php")

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
Good job! No executable or dangerous file extensions detected3,298 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
CSS28112,423
SVG11011434
PHP767141330
JavaScript2191095
PO File11616

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.45
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods11
▷ Static methods218.18%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions10
▷ Named functions10100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/img/logo.png7.29KB4.47KB▼ 38.68%