84% the-events-calendar-user-css

Code Review | The Events Calendar User CSS

WordPress plugin The Events Calendar User CSS scored84%from 54 tests.

About plugin

  • Plugin page: the-events-calend...
  • Plugin version: 1.5.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Jul 27, 2012
  • Latest release: Jul 21, 2023
  • Number of updates: 86
  • Update frequency: every 46.7 days
  • Top authors: afragen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /11,296 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.00MB] [CPU: ▼3.86ms] Passed 4 tests

A check of server-side resources used by The Events Calendar User CSS
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.01 ▼2.18
Dashboard /wp-admin3.31 ▲0.0043.24 ▼4.66
Posts /wp-admin/edit.php3.36 ▲0.0047.22 ▲5.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.03 ▼6.36
Media Library /wp-admin/upload.php3.23 ▲0.0031.57 ▼2.22

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

The Events Calendar User CSS: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼1.051.77 ▼0.0638.84 ▼6.47
Dashboard /wp-admin2,200 ▲125.78 ▼0.0299.15 ▼22.5537.73 ▼7.88
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0240.63 ▲3.5635.08 ▲2.23
Add New Post /wp-admin/post-new.php1,523 ▼523.42 ▲5.05667.53 ▲50.0263.09 ▲11.83
Media Library /wp-admin/upload.php1,388 ▼34.34 ▲0.1094.04 ▼9.5642.96 ▼0.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-events-calendar-user-css/the-events-calendar-user-css.php:18

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 96% 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: css, user css, tribe, modern tribe, events

the-events-calendar-user-css/the-events-calendar-user-css.php 92% from 13 tests

"The Events Calendar User CSS" version 1.5.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 186 characters long)

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
Good job! No executable or dangerous file extensions detected12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP121312

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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