83% paga-con-bollettino

Code Review | Paga con Bollettino

WordPress plugin Paga con Bollettino scored83%from 54 tests.

About plugin

  • Plugin page: paga-con-bollettino
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Sep 18, 2016
  • Latest release: Sep 20, 2016
  • Number of updates: 11
  • Update frequency: every 0.3 days
  • Top authors: caygri (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /790 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.78ms] Passed 4 tests

A check of server-side resources used by Paga con Bollettino
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0242.92 ▼5.08
Dashboard /wp-admin3.33 ▲0.0249.39 ▼4.67
Posts /wp-admin/edit.php3.38 ▲0.0246.64 ▼11.94
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.04 ▼13.43
Media Library /wp-admin/upload.php3.25 ▲0.0236.54 ▲0.65

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Paga con Bollettino
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▲0.221.77 ▼0.0543.04 ▼7.26
Dashboard /wp-admin2,195 ▲155.65 ▼0.0683.34 ▼7.9339.02 ▼5.01
Posts /wp-admin/edit.php2,097 ▼32.01 ▼0.0736.88 ▼3.8432.98 ▼3.80
Add New Post /wp-admin/post-new.php1,531 ▲322.93 ▲2.00684.32 ▲39.4754.66 ▲6.68
Media Library /wp-admin/upload.php1,403 ▲34.21 ▲0.01102.39 ▼3.7447.23 ▲0.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/paga-con-bollettino/paga-con-bolletino.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === paga-con-bollettino === )
  • Screenshots: Add descriptions for screenshots #2, #3 in paga-con-bollettino/assets to your readme.txt
You can look at the official readme.txt

paga-con-bollettino/paga-con-bolletino.php 92% from 13 tests

"Paga con Bollettino" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("paga-con-bollettino.php" instead of "paga-con-bolletino.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin118 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13939118

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected