78% llavero-io

Code Review | Llavero.io

WordPress plugin Llavero.io scored78%from 54 tests.

About plugin

  • Plugin page: llavero-io
  • Plugin version: 0.1.4
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Feb 20, 2018
  • Latest release: Mar 3, 2018
  • Number of updates: 8
  • Update frequency: every 1.5 days
  • Top authors: davidnoguera (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

70+ active /1,386 total downloads

Benchmarks

Plugin footprint 83% 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.07MB] [CPU: ▼16.60ms] Passed 4 tests

An overview of server-side resources used by Llavero.io
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1837.30 ▼0.56
Dashboard /wp-admin3.23 ▼0.0826.97 ▼19.18
Posts /wp-admin/edit.php3.36 ▲0.0131.83 ▼18.24
Add New Post /wp-admin/post-new.php5.61 ▼0.2864.99 ▼24.85
Media Library /wp-admin/upload.php3.31 ▲0.0928.12 ▼4.11

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Llavero.io
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4713.69 ▼0.611.84 ▼0.0642.18 ▲1.62
Dashboard /wp-admin2,221 ▲334.86 ▼1.01101.65 ▲4.0238.60 ▼5.38
Posts /wp-admin/edit.php2,101 ▲92.00 ▼0.0538.40 ▲2.9235.64 ▲0.40
Add New Post /wp-admin/post-new.php1,543 ▲1923.17 ▼0.01655.21 ▲27.5252.70 ▼6.88
Media Library /wp-admin/upload.php1,400 ▲124.21 ▼0.01105.42 ▼0.4249.59 ▲6.91

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/llavero-io/includes/views/help.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_super_admin() in wp-content/plugins/llavero-io/includes/views/configmanual.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/llavero-io/weciberllavero.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/llavero-io/includes/views/debug.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'CiberLlaveroHelper' not found in wp-content/plugins/llavero-io/includes/views/inicio.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_super_admin() in wp-content/plugins/llavero-io/includes/views/config.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: security, authentication, login, 2fa

llavero-io/weciberllavero.php 85% from 13 tests

Analyzing the main PHP file in "Llavero.io" version 0.1.4
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 151 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("llavero-io.php" instead of "weciberllavero.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,940 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP10573831,227
JavaScript234044713

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity13.50
▷ Minimum class complexity4.00
▷ Maximum class complexity23.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods15100.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.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
No PNG images were found in this plugin