83% i-motivazionali

Code Review | I Motivazionali

WordPress plugin I Motivazionali scored83%from 54 tests.

About plugin

  • Plugin page: i-motivazionali
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 8, 2014
  • Latest release: Mar 8, 2014
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: simonegaio (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /860 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by I Motivazionali
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0135.26 ▼3.14
Dashboard /wp-admin3.31 ▲0.0147.56 ▲1.01
Posts /wp-admin/edit.php3.36 ▲0.0044.33 ▼4.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.54 ▼6.92
Media Library /wp-admin/upload.php3.23 ▲0.0033.67 ▲0.20

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for I Motivazionali
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲7813.35 ▼0.961.72 ▼0.1540.51 ▼3.71
Dashboard /wp-admin2,219 ▲335.86 ▲0.95102.89 ▼12.7740.18 ▼4.29
Posts /wp-admin/edit.php2,101 ▲122.03 ▼0.0235.32 ▼6.1634.34 ▼1.92
Add New Post /wp-admin/post-new.php1,622 ▲8821.69 ▼1.72666.51 ▼24.4946.12 ▼16.96
Media Library /wp-admin/upload.php1,395 ▲44.19 ▼0.1597.83 ▼5.2240.83 ▼3.00

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: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/i-motivazionali/motivazionali.php:57

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 83% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (screenshot1.png) image required
  • Tested up to: The plugin version is formatted incorrectly
  • Requires at least: The plugin version is formatted incorrectly
Please take inspiration from this readme.txt

i-motivazionali/motivazionali.php 85% from 13 tests

The main file in "I Motivazionali" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 243 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("i-motivazionali.php" instead of "motivazionali.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin51 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192051

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions3
▷ Named functions3100.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.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot1.png14.09KB12.76KB▼ 9.45%