84% localist-calendar

Code Review | Localist Calendar for WordPress

WordPress plugin Localist Calendar for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: localist-calendar
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.1-4.5.3
  • WordPress version: 6.3.1
  • First release: Sep 16, 2016
  • Latest release: Sep 16, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: localist (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /929 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼8.04ms] Passed 4 tests

Server-side resources used by Localist Calendar for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.08 ▼0.97
Dashboard /wp-admin3.31 ▲0.0149.82 ▼2.25
Posts /wp-admin/edit.php3.36 ▲0.0145.30 ▼7.52
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.30 ▼17.44
Media Library /wp-admin/upload.php3.23 ▲0.0134.51 ▼4.94

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: 1 new table, 7 new options
New tables
wp_localistCalendar
New WordPress options
db_upgraded
widget_theysaidso_widget
jal_db_version
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Localist Calendar for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲7413.12 ▼1.251.78 ▼0.3842.54 ▲0.19
Dashboard /wp-admin2,241 ▲414.94 ▼0.96108.79 ▲4.8344.92 ▼9.02
Posts /wp-admin/edit.php2,123 ▲232.06 ▲0.0536.42 ▼6.7335.88 ▼4.52
Add New Post /wp-admin/post-new.php1,543 ▲923.23 ▼0.05678.23 ▼11.1157.12 ▼0.75
Media Library /wp-admin/upload.php1,420 ▲234.24 ▲0.01101.37 ▼10.7144.68 ▼2.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • jal_db_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/localist-calendar/localist.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention: The official readme.txt might help

localist-calendar/localist.php 92% from 13 tests

The primary PHP file in "Localist Calendar for WordPress" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("localist-calendar.php" instead of "localist.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,332 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1120106901
JavaScript1228321
CSS1815110

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin