84% cambia-utente

Code Review | Cambia Utente

WordPress plugin Cambia Utente scored 84% from 54 tests.

About plugin

  • Plugin page: cambia-utente
  • Plugin version: 1.4
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.8-6.2
  • WordPress version: 6.3.1
  • First release: Dec 6, 2018
  • Latest release: Mar 24, 2023
  • Number of updates: 13
  • Update frequency: every 120.7 days
  • Top authors: DevFabio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 5,070 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.13ms] Passed 4 tests

A check of server-side resources used by Cambia Utente
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.74 ▼5.58
Dashboard /wp-admin3.31 ▲0.0150.98 ▲5.16
Posts /wp-admin/edit.php3.36 ▲0.0045.54 ▼2.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.26 ▼10.54
Media Library /wp-admin/upload.php3.23 ▲0.0037.35 ▲2.35

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Cambia Utente
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.15 ▼1.314.73 ▲3.0040.39 ▼7.14
Dashboard /wp-admin2,225 ▲405.89 ▼0.0196.95 ▼2.5738.84 ▼3.29
Posts /wp-admin/edit.php2,105 ▲162.02 ▲0.0035.02 ▼0.8433.06 ▲1.71
Add New Post /wp-admin/post-new.php1,560 ▲4118.36 ▼5.00632.86 ▼34.1967.11 ▲12.03
Media Library /wp-admin/upload.php1,404 ▲194.24 ▲0.0893.08 ▼2.6240.70 ▼1.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cambia-utente/wp-cambia-utente.php:17

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

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: administrator, login, debug, woocommerce, utente

cambia-utente/wp-cambia-utente.php 85% from 13 tests

The main file in "Cambia Utente" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 168 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cambia-utente.php" instead of "wp-cambia-utente.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 plugin47 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1253947

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.50
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin