83% spedirebest-it

Code Review | Spedire Best

WordPress plugin Spedire Best scored83%from 54 tests.

About plugin

  • Plugin page: spedirebest-it
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6
  • WordPress version: 6.3.1
  • First release: Feb 2, 2021
  • Latest release: Feb 2, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: spedirebest (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /320 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 gracefully, with no errors

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

This is a short check of server-side resources used by Spedire Best
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.12 ▼2.10
Dashboard /wp-admin3.32 ▲0.0148.15 ▼9.70
Posts /wp-admin/edit.php3.37 ▲0.0151.56 ▲3.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.42 ▼16.04
Media Library /wp-admin/upload.php3.24 ▲0.0142.18 ▲2.90

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 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 Spedire Best
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.311.69 ▼0.1342.72 ▼2.85
Dashboard /wp-admin2,189 ▲155.54 ▼0.1385.88 ▼2.7839.27 ▲1.48
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0539.72 ▲3.4936.08 ▼0.25
Add New Post /wp-admin/post-new.php1,526 ▼023.08 ▼0.48619.76 ▼91.1850.27 ▼3.94
Media Library /wp-admin/upload.php1,403 ▲34.16 ▼0.0498.73 ▼4.9045.19 ▲2.31

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/spedirebest-it/includes/data/data-settings.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% 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
7 plugin tags: ecommerce, woocommerce, store, integration, shop...

spedirebest-it/spedirebest-integration.php 69% from 13 tests

The main file in "Spedire Best" v. 0.0.1 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:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("spedirebest-it.php" instead of "spedirebest-integration.php")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,035 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6112104970
XML30065

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity30.00
▷ Minimum class complexity5.00
▷ Maximum class complexity55.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods2475.00%
▷ Protected methods00.00%
▷ Private methods825.00%
Functions30
▷ Named functions2996.67%
▷ Anonymous functions13.33%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin