83% calendario-del-peru

Code Review | Calendario del Perú

WordPress plugin Calendario del Perú scored 83% from 54 tests.

About plugin

  • Plugin page: calendario-del-peru
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.8
  • WordPress version: 6.3.1
  • First release: Sep 23, 2014
  • Latest release: Jul 14, 2021
  • Number of updates: 23
  • Update frequency: every 108.0 days
  • Top authors: deperucom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,240 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Analyzing server-side resources used by Calendario del Perú
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.07 ▲1.98
Dashboard /wp-admin3.34 ▲0.0448.94 ▲0.69
Posts /wp-admin/edit.php3.39 ▲0.0348.82 ▲1.99
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.04 ▼9.10
Media Library /wp-admin/upload.php3.26 ▲0.0335.58 ▲0.37

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Calendario del Perú
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.74 ▲0.512.06 ▲0.3245.72 ▲5.16
Dashboard /wp-admin2,206 ▲215.91 ▲0.05107.13 ▲0.5539.44 ▼1.89
Posts /wp-admin/edit.php2,089 ▲31.98 ▼0.0139.52 ▲3.3435.40 ▲1.85
Add New Post /wp-admin/post-new.php1,533 ▼023.30 ▲0.04691.21 ▲16.1153.33 ▲3.25
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0293.75 ▼18.5745.71 ▼2.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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 | 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_sidebar_widget() in wp-content/plugins/calendario-del-peru/wp-xml-rss-parser.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: There are too many tags (16 tag instead of maximum 10)
  • Screenshots: These screenshots require images: #1 (Muestra como se ve el widget screenshot-1.png en el tema Twenty Fourteen), #2 (Instalando el widget en su tema)
The official readme.txt is a good inspiration

calendario-del-peru/wp-xml-rss-parser.php 77% from 13 tests

"Calendario del Perú" version 1...'s main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 274 characters long)
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1...")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("calendario-del-peru.php" instead of "wp-xml-rss-parser.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected150 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22163150

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity9.50
▷ Minimum method complexity1.00
▷ Maximum method complexity25.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

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png71.36KB19.96KB▼ 72.03%
screenshot-1.png18.34KB5.01KB▼ 72.69%