89% esami-di-laboratorio

Code Review | Esami di laboratorio

WordPress plugin Esami di laboratorio scored89%from 54 tests.

About plugin

  • Plugin page: esami-di-laboratorio
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 9, 2020
  • Latest release: Mar 9, 2020
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: micropedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /398 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
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Esami di laboratorio
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.23 ▲2.22
Dashboard /wp-admin3.38 ▲0.0744.65 ▼2.35
Posts /wp-admin/edit.php3.43 ▲0.0744.82 ▼1.42
Add New Post /wp-admin/post-new.php5.96 ▲0.0791.77 ▲1.48
Media Library /wp-admin/upload.php3.30 ▲0.0734.70 ▼2.57
Esami di laboratorio /wp-admin/options-general.php?page=esami-laboratorio3.2730.90

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Esami di laboratorio
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.34 ▼0.911.65 ▼0.2738.45 ▼6.97
Dashboard /wp-admin2,213 ▲255.03 ▲0.10107.86 ▼7.9843.08 ▼4.59
Posts /wp-admin/edit.php2,096 ▲102.03 ▼0.0039.64 ▲1.6135.23 ▲2.21
Add New Post /wp-admin/post-new.php1,517 ▲10517.85 ▼0.08654.02 ▲40.1357.29 ▲8.60
Media Library /wp-admin/upload.php1,392 ▲44.17 ▼0.1895.19 ▼18.2242.88 ▼2.75
Esami di laboratorio /wp-admin/options-general.php?page=esami-laboratorio9202.0222.3934.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: laboratorio, vademecum, analisi, esami, guida esami laboratorio analisi

esami-di-laboratorio/plugin.php 85% from 13 tests

This is the main PHP file of "Esami di laboratorio" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("3.5.0" instead of "5.2")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("esami-di-laboratorio.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin297 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP311510297

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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
Namespaces3
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%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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