79% offerte-internet

Code Review | Offerte Internet

WordPress plugin Offerte Internet scored79%from 54 tests.

About plugin

  • Plugin page: offerte-internet
  • Plugin version: 2.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Apr 13, 2017
  • Latest release: Nov 6, 2022
  • Number of updates: 14
  • Update frequency: every 145.4 days
  • Top authors: GioSensation (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /897 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.69ms] Passed 4 tests

Analyzing server-side resources used by Offerte Internet
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0840.47 ▼0.49
Dashboard /wp-admin3.38 ▲0.0748.03 ▼4.24
Posts /wp-admin/edit.php3.43 ▲0.0749.79 ▲0.98
Add New Post /wp-admin/post-new.php5.96 ▲0.0793.73 ▼4.79
Media Library /wp-admin/upload.php3.30 ▲0.0737.91 ▼1.25

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_offerte_internet
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
offerte_internet_data
db_upgraded

Browser metrics Passed 4 tests

Offerte Internet: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.24 ▼0.121.63 ▼0.8340.28 ▼2.93
Dashboard /wp-admin2,195 ▲185.64 ▼0.0289.10 ▲0.8741.84 ▼1.28
Posts /wp-admin/edit.php2,103 ▼01.95 ▼0.0441.11 ▼1.7237.53 ▼1.00
Add New Post /wp-admin/post-new.php1,526 ▼223.00 ▼0.23669.97 ▼7.3360.18 ▲4.54
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.04105.67 ▼10.1847.02 ▼0.02

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
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_offerte_internet
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% 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 0% 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
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/offerte-internet/offerte-internet.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/offerte-internet/includes/widget.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: wordpress api, offerte internet, informazioni adsl

offerte-internet/offerte-internet.php Passed 13 tests

"Offerte Internet" version 2.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
120 characters long description:
Aggiunge un widget che mostra le migliori offerte internet per l'adsl e la fibra in Italia prese da OfferteInternet.net.

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
Success! There were no dangerous files found in this plugin202 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32127130
CSS12272

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
offerte-internet-logo.png2.98KB3.00KB0.00%