84% bollettino-neve-asiago-it

Code Review | Bollettino Neve Asiago.it

WordPress plugin Bollettino Neve Asiago.it scored84%from 54 tests.

About plugin

  • Plugin page: bollettino-neve-a...
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.1-5.3
  • WordPress version: 6.3.1
  • First release: Jan 31, 2018
  • Latest release: Nov 15, 2019
  • Number of updates: 19
  • Update frequency: every 34.4 days
  • Top authors: wcmatteo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /826 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.49ms] Passed 4 tests

Analyzing server-side resources used by Bollettino Neve Asiago.it
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0345.44 ▼13.52
Dashboard /wp-admin3.35 ▲0.0165.24 ▼1.82
Posts /wp-admin/edit.php3.40 ▲0.0453.14 ▼1.47
Add New Post /wp-admin/post-new.php5.93 ▲0.0497.74 ▲2.88
Media Library /wp-admin/upload.php3.27 ▲0.0442.29 ▲2.87
Bollettino Neve Asiago.it /wp-admin/options-general.php?page=webcloud-snow-bulletin3.2435.29

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Bollettino Neve Asiago.it
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.25 ▲0.101.82 ▼0.5547.50 ▲0.47
Dashboard /wp-admin2,202 ▲255.63 ▼0.0387.19 ▼14.9542.32 ▲0.46
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.0139.31 ▲1.3135.18 ▲2.41
Add New Post /wp-admin/post-new.php1,531 ▲523.30 ▲0.43670.35 ▼27.8158.41 ▲0.28
Media Library /wp-admin/upload.php1,398 ▼24.17 ▼0.0296.97 ▼10.1745.16 ▼1.15
Bollettino Neve Asiago.it /wp-admin/options-general.php?page=webcloud-snow-bulletin7902.0123.9027.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_webcloud_snow_bulletin_widget
    • theysaidso_admin_options

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Webcloud\\SnowBulletin\\add_shortcode() in wp-content/plugins/bollettino-neve-asiago-it/webcloud-snow-bulletin.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Webcloud\\SnowBulletin\\get_option() in wp-content/plugins/bollettino-neve-asiago-it/views/snow-bulletin.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% 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
No plugin tags provided

bollettino-neve-asiago-it/webcloud-snow-bulletin.php 92% from 13 tests

The main file in "Bollettino Neve Asiago.it" v. 1.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bollettino-neve-asiago-it.php" instead of "webcloud-snow-bulletin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin146 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22865144
SVG2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity5.00
▷ Minimum class complexity4.00
▷ Maximum class complexity6.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin