74% belocalendar

Code Review | Belocalendar

WordPress plugin Belocalendar scored74%from 54 tests.

About plugin

  • Plugin page: belocalendar
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 3, 2016
  • Latest release: Nov 7, 2016
  • Number of updates: 9
  • Update frequency: every 1.0 days
  • Top authors: faltantornillos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /588 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.50ms] Passed 4 tests

An overview of server-side resources used by Belocalendar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.02 ▼6.45
Dashboard /wp-admin3.38 ▲0.0849.99 ▼8.19
Posts /wp-admin/edit.php3.49 ▲0.1452.04 ▲1.32
Add New Post /wp-admin/post-new.php5.98 ▲0.0989.32 ▼1.32
Media Library /wp-admin/upload.php3.30 ▲0.0736.96 ▼2.05

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: 1 new table, 7 new options
New tables
wp_belocalendar
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
jal_db_version

Browser metrics Passed 4 tests

A check of browser resources used by Belocalendar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲7813.24 ▼1.381.97 ▲0.2345.56 ▲0.33
Dashboard /wp-admin2,235 ▲325.79 ▼0.06107.63 ▼11.1638.44 ▼7.29
Posts /wp-admin/edit.php2,120 ▲202.06 ▲0.0740.67 ▲2.0534.75 ▼2.80
Add New Post /wp-admin/post-new.php1,543 ▲1223.20 ▼0.28676.69 ▼11.9666.26 ▲1.74
Media Library /wp-admin/upload.php1,420 ▲264.20 ▼0.21100.11 ▼5.7445.04 ▲3.85

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_belocalendar
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • jal_db_version
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

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 | 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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Belocalendar_Public' not found in wp-content/plugins/belocalendar/public/partials/belocalendar-public-display.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Belocalendar_Admin' not found in wp-content/plugins/belocalendar/admin/partials/belocalendar-admin-display.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === belocalendar === )
The official readme.txt might help

belocalendar/belocalendar.php Passed 13 tests

"Belocalendar" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
24 characters long description:
A simple events calendar

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin602 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12106231467
PO File1292975
CSS2103648
JavaScript243612

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity1.29
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.09
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions7
▷ Named functions7100.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