90% hola-tio-simon

Code Review | Hola, Tío Simón

WordPress plugin Hola, Tío Simón scored90%from 54 tests.

About plugin

  • Plugin page: hola-tio-simon
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 6.3.1
  • First release: Apr 24, 2020
  • Latest release: Feb 21, 2022
  • Number of updates: 6
  • Update frequency: every 111.7 days
  • Top authors: YordanSoares (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /773 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.39ms] Passed 4 tests

An overview of server-side resources used by Hola, Tío Simón
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0146.22 ▼3.54
Dashboard /wp-admin3.32 ▼0.0356.25 ▼10.69
Posts /wp-admin/edit.php3.37 ▲0.0149.74 ▲1.63
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.81 ▼10.72
Media Library /wp-admin/upload.php3.24 ▲0.0141.07 ▼0.62

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Hola, Tío Simón: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1414.27 ▲0.031.79 ▼0.2244.21 ▲1.82
Dashboard /wp-admin2,209 ▲295.63 ▼0.0691.36 ▼2.8440.71 ▲1.62
Posts /wp-admin/edit.php2,108 ▲81.97 ▼0.0238.30 ▼1.5536.58 ▼4.19
Add New Post /wp-admin/post-new.php1,538 ▲1223.21 ▼0.46679.20 ▼27.3968.82 ▲8.87
Media Library /wp-admin/upload.php1,405 ▲54.18 ▲0.0396.87 ▼23.6547.59 ▼4.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 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 Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% 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
5 plugin tags: folklore venezolano, musica venezolana, simon diaz, tonadas, venezuela

hola-tio-simon/hola-tio-simon.php 92% from 13 tests

"Hola, Tío Simón" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("3.0" instead of "4.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin135 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1172983
Markdown113052

PHP code Passed 2 tests

Analyzing 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.12
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%
Functions3
▷ Named functions3100.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 are no PNG files in this plugin