84% sin-comentarios

Code Review | Sin Comentarios

WordPress plugin Sin Comentarios scored84%from 54 tests.

About plugin

  • Plugin page: sin-comentarios
  • Plugin version: 1.2
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Jul 5, 2022
  • Latest release: Aug 30, 2023
  • Number of updates: 25
  • Update frequency: every 16.8 days
  • Top authors: christiancabrero (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,115 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.01MB] [CPU: ▼1.62ms] Passed 4 tests

Analyzing server-side resources used by Sin Comentarios
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.83 ▼8.09
Dashboard /wp-admin3.32 ▲0.0248.46 ▼2.84
Posts /wp-admin/edit.php3.36 ▼0.0147.86 ▼1.79
Add New Post /wp-admin/post-new.php5.91 ▲0.0199.72 ▲6.23
Media Library /wp-admin/upload.php3.25 ▲0.0138.62 ▲6.45
All Comments /wp-admin/edit-comments.php3.0426.77

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sin Comentarios
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.23 ▼0.342.01 ▲0.1744.45 ▼2.33
Dashboard /wp-admin2,175 ▼25.61 ▼0.0391.34 ▼3.7639.02 ▼1.58
Posts /wp-admin/edit.php1,954 ▼1491.95 ▼0.0235.27 ▼4.1934.45 ▼1.80
Add New Post /wp-admin/post-new.php1,504 ▼2223.16 ▼0.63697.17 ▼1.8058.35 ▼5.68
Media Library /wp-admin/upload.php1,386 ▼144.18 ▼0.01102.19 ▼10.6745.09 ▼1.14
All Comments /wp-admin/edit-comments.php2,1785.5471.8535.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/sin-comentarios/sin-comentarios.php

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: spam, comments, comentarios, clean, plugin

sin-comentarios/sin-comentarios.php 85% from 13 tests

"Sin Comentarios" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin37 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2112337

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.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
No PNG images were found in this plugin