74% sumeclientes

Code Review | Sume Clientes

WordPress plugin Sume Clientes scored74%from 54 tests.

About plugin

  • Plugin page: sumeclientes
  • Plugin version: 0.1.12
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Dec 23, 2016
  • Latest release: Apr 19, 2023
  • Number of updates: 25
  • Update frequency: every 92.1 days
  • Top authors: ksume (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,320 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Sume Clientes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.00 ▼0.4622.08 ▼21.10
Dashboard /wp-admin3.50 ▲0.2049.75 ▼1.22
Posts /wp-admin/edit.php3.62 ▲0.2655.57 ▲4.91
Add New Post /wp-admin/post-new.php6.08 ▲0.2086.49 ▼13.11
Media Library /wp-admin/upload.php3.43 ▲0.2037.28 ▲1.29
Variaciones /wp-admin/admin.php?page=variaciones3.4334.63
Configuracion /wp-admin/admin.php?page=configuracion3.4147.16
Sume Clientes /wp-admin/admin.php?page=sume_clientes3.4333.25

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 41 new files
Database: 3 new tables, 6 new options
New tables
wp_sume_clientes_variaciones
wp_sume_clientes_paginas
wp_sume_clientes_conf
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sume Clientes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲5713.18 ▼1.111.90 ▼0.1542.14 ▲4.37
Dashboard /wp-admin2,235 ▲534.91 ▼0.00107.51 ▼1.3277.49 ▲34.67
Posts /wp-admin/edit.php2,115 ▲292.02 ▲0.0339.01 ▲3.0036.69 ▲1.07
Add New Post /wp-admin/post-new.php1,536 ▲123.16 ▼0.26786.45 ▲154.9158.44 ▲6.70
Media Library /wp-admin/upload.php1,408 ▲204.22 ▼0.00102.50 ▼1.4670.14 ▲24.50
Variaciones /wp-admin/admin.php?page=variaciones8282.2435.3285.74
Configuracion /wp-admin/admin.php?page=configuracion8782.2232.8737.40
Sume Clientes /wp-admin/admin.php?page=sume_clientes8522.1927.8236.49

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/sumeclientes/sumeclientes.php+92
    Undefined variable: ids
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sume_clientes
    • > Notice in wp-content/plugins/sumeclientes/paginas_captura.php+8
    Undefined offset: 0
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sume_clientes
    • > Notice in wp-content/plugins/sumeclientes/paginas_captura.php+8
    Trying to access array offset on value of type null

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

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: mercadeo en lnea basado en resultados, pginas de captura, sume clientes

sumeclientes/sumeclientes.php 92% from 13 tests

Analyzing the main PHP file in "Sume Clientes" version 0.1.12
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 159 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin7,273 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
CSS770223,433
JavaScript123751041,844
PHP661851,329
SVG200643
JSON12024

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions26
▷ Named functions26100.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
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon.png2.26KB1.44KB▼ 36.17%
logo.png61.20KB30.29KB▼ 50.50%