78% prodotti-tipici-scoop

Code Review | Prodotti Tipici Scoop

WordPress plugin Prodotti Tipici Scoop scored78%from 54 tests.

About plugin

  • Plugin page: prodotti-tipici-s...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Feb 19, 2017
  • Latest release: Apr 25, 2017
  • Number of updates: 19
  • Update frequency: every 3.3 days
  • Top authors: fabiocarucci (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /554 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.65ms] Passed 4 tests

A check of server-side resources used by Prodotti Tipici Scoop
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.07 ▼7.92
Dashboard /wp-admin3.35 ▲0.01169.53 ▲101.73
Posts /wp-admin/edit.php3.50 ▲0.1450.37 ▲2.98
Add New Post /wp-admin/post-new.php5.96 ▲0.0894.19 ▼2.78
Media Library /wp-admin/upload.php3.31 ▲0.0836.36 ▼2.86
Statistiche /wp-admin/admin.php?page=prodotti-tipici-scoop/prodottitipici_scoop.plugin.php/ptscoop-statistiche.php3.25165.82
Prodotti Tipici /wp-admin/admin.php?page=prodotti-tipici-scoop/prodottitipici_scoop.plugin.php/prodotti-tipici-scoop-admin-page.php3.25203.55
Utilità /wp-admin/admin.php?page=prodotti-tipici-scoop/prodottitipici_scoop.plugin.php/ptscoop-utilita.php3.25203.99
Popolarità /wp-admin/admin.php?page=prodotti-tipici-scoop/prodottitipici_scoop.plugin.php/ptscoopp-popolarita.php3.25148.93

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
db_upgraded
ptscoop_bbc_cookie
theysaidso_admin_options
widget_recent-posts
ptscoop_authorization_code
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Prodotti Tipici Scoop
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲12214.17 ▼0.272.02 ▲0.1743.78 ▼0.60
Dashboard /wp-admin2,264 ▲875.72 ▲0.0990.22 ▼15.3141.32 ▼3.63
Posts /wp-admin/edit.php2,131 ▲341.97 ▼0.0236.82 ▲0.7232.74 ▼2.65
Add New Post /wp-admin/post-new.php1,554 ▲2623.28 ▲0.59659.93 ▼20.5553.08 ▲2.29
Media Library /wp-admin/upload.php1,431 ▲314.18 ▲0.0498.75 ▼14.0243.17 ▼6.66
Statistiche /wp-admin/admin.php?page=prodotti-tipici-scoop/prodottitipici_scoop.plugin.php/ptscoop-statistiche.php7922.0423.0925.41
Prodotti Tipici /wp-admin/admin.php?page=prodotti-tipici-scoop/prodottitipici_scoop.plugin.php/prodotti-tipici-scoop-admin-page.php8792.0323.0028.89
Utilità /wp-admin/admin.php?page=prodotti-tipici-scoop/prodottitipici_scoop.plugin.php/ptscoop-utilita.php7952.0023.4225.43
Popolarità /wp-admin/admin.php?page=prodotti-tipici-scoop/prodottitipici_scoop.plugin.php/ptscoopp-popolarita.php7952.0125.4023.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_theysaidso_widget
    • ptscoop_authorization_code
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • ptscoop_bbc_cookie

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=prodotti-tipici-scoop/prodottitipici_scoop.plugin.php/ptscoopp-popolarita.php
    • > Warning in wp-content/plugins/prodotti-tipici-scoop/prodottitipici_scoop.plugin.php+135
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
    • > GET request to /wp-admin/admin.php?page=prodotti-tipici-scoop/prodottitipici_scoop.plugin.php/ptscoop-statistiche.php
    • > Warning in wp-content/plugins/prodotti-tipici-scoop/prodottitipici_scoop.plugin.php+146
    file_get_contents(http://gst.prodottitipici.it/ptscoop/scoopremote.aspx?tipo=statistiche&uid=Codice di autorizzazione): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=prodotti-tipici-scoop/prodottitipici_scoop.plugin.php/prodotti-tipici-scoop-admin-page.php
    • > Warning in wp-content/plugins/prodotti-tipici-scoop/prodottitipici_scoop.plugin.php+20
    file_get_contents(http://gst.prodottitipici.it/ptscoop/scoopremote.aspx?tipo=chiave&uid=Codice di autorizzazione): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
    • > GET request to /wp-admin/admin.php?page=prodotti-tipici-scoop/prodottitipici_scoop.plugin.php/ptscoop-utilita.php
    • > Warning in wp-content/plugins/prodotti-tipici-scoop/prodottitipici_scoop.plugin.php+157
    file_get_contents(http://gst.prodottitipici.it/ptscoop/scoopremote.aspx?tipo=widget&uid=Codice di autorizzazione): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
    • > GET request to /wp-admin/admin.php?page=prodotti-tipici-scoop/prodottitipici_scoop.plugin.php/ptscoopp-popolarita.php
    • > Warning in wp-content/plugins/prodotti-tipici-scoop/prodottitipici_scoop.plugin.php+135
    file_get_contents(http://gst.prodottitipici.it/ptscoop/scoopremote.aspx?tipo=famoso&uid=Codice di autorizzazione): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/prodotti-tipici-scoop/prodottitipici_scoop.plugin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: e-commerce, marketing

prodotti-tipici-scoop/prodottitipici_scoop.plugin.php 92% from 13 tests

The main PHP script in "Prodotti Tipici Scoop" version 1.3 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("prodotti-tipici-scoop.php" instead of "prodottitipici_scoop.plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1 line of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1001
JavaScript1130

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected