10% versiculo-del-dia

Code Review | Versiculo del dia

WordPress plugin Versiculo del dia scored 10% from 54 tests.

About plugin

  • Plugin page: versiculo-del-dia
  • Plugin version: 2.1.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 24, 2016
  • Latest release: Jul 14, 2021
  • Number of updates: 29
  • Update frequency: every 69.9 days
  • Top authors: bibliatodo (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active / 2,662 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/versiculo-del-dia/vdd-versiculo-del-dia.php+101
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼55.92ms] Passed 4 tests

This is a short check of server-side resources used by Versiculo del dia
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.47 ▼38.16
Dashboard /wp-admin2.05 ▼1.266.51 ▼49.23
Posts /wp-admin/edit.php2.05 ▼1.315.65 ▼42.94
Add New Post /wp-admin/post-new.php2.05 ▼3.844.98 ▼93.35
Media Library /wp-admin/upload.php2.05 ▼1.185.26 ▼30.22

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_vdd_versiculo_diawidget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Versiculo del dia: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.16 ▼1.101.60 ▼0.2642.07 ▼2.83
Dashboard /wp-admin2,206 ▲214.86 ▼0.03109.83 ▲2.9341.50 ▼6.56
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0639.17 ▲1.9435.18 ▼0.66
Add New Post /wp-admin/post-new.php1,547 ▲1919.00 ▲0.73591.92 ▼3.0866.75 ▲13.70
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0195.26 ▼3.5440.11 ▼3.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/versiculo-del-dia/vdd-versiculo-del-dia.php+101
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_vdd_versiculo_diawidget
    • db_upgraded
    • can_compress_scripts
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/versiculo-del-dia/vdd-versiculo-del-dia.php:41

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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention: You can look at the official readme.txt

versiculo-del-dia/vdd-versiculo-del-dia.php 92% from 13 tests

"Versiculo del dia" version 2.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("versiculo-del-dia.php" instead of "vdd-versiculo-del-dia.php")

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
Success! There were no dangerous files found in this plugin1 line of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin