83% servientrega-mercancia-premier

Code Review | Servientrega Mercancía Premier

WordPress plugin Servientrega Mercancía Premier scored83%from 54 tests.

About plugin

  • Plugin page: servientrega-merc...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-5.9
  • WordPress version: 6.3.1
  • First release: May 26, 2022
  • Latest release: Apr 20, 2023
  • Number of updates: 11
  • Update frequency: every 29.9 days
  • Top authors: dudaspluginservientrega (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /346 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.40ms] Passed 4 tests

An overview of server-side resources used by Servientrega Mercancía Premier
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.75 ▲0.34
Dashboard /wp-admin3.34 ▲0.0350.45 ▼1.02
Posts /wp-admin/edit.php3.39 ▲0.0354.62 ▲10.60
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.92 ▼13.97
Media Library /wp-admin/upload.php3.26 ▲0.0335.44 ▲1.04

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Servientrega Mercancía Premier
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.525.28 ▲3.5740.27 ▼5.91
Dashboard /wp-admin2,206 ▲275.89 ▲0.76106.87 ▼5.5239.29 ▼6.09
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0739.80 ▲2.1535.42 ▼1.22
Add New Post /wp-admin/post-new.php1,542 ▲2318.62 ▼4.64639.96 ▼5.4257.70 ▼1.05
Media Library /wp-admin/upload.php1,388 ▼34.26 ▲0.0895.48 ▼1.1142.74 ▼1.07

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/servientrega-mercancia-premier/servientrega-mp-rate.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • License uri: Please fix this invalid url: "[https://www.gnu.org/licenses/gpl-3.0.html](https://www.gnu.org/licenses/gpl-3.0.html)"
Please take inspiration from this readme.txt

servientrega-mercancia-premier/servientrega-mp-rate.php 85% from 13 tests

"Servientrega Mercancía Premier" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("servientrega-mercancia-premier.php" instead of "servientrega-mp-rate.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,854 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4115401,854

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity5.33
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected