84% fix-event-calendar-caching

Code Review | Fix Event Calendar Caching

WordPress plugin Fix Event Calendar Caching scored84%from 54 tests.

About plugin

  • Plugin page: fix-event-calenda...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Feb 2, 2015
  • Latest release: Mar 11, 2015
  • Number of updates: 8
  • Update frequency: every 4.8 days
  • Top authors: DanielMahaffy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,266 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.55ms] Passed 4 tests

This is a short check of server-side resources used by Fix Event Calendar Caching
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.83 ▲0.07
Dashboard /wp-admin3.32 ▼0.0243.73 ▼12.27
Posts /wp-admin/edit.php3.37 ▲0.0242.89 ▼4.41
Add New Post /wp-admin/post-new.php5.90 ▲0.0279.57 ▼16.33
Media Library /wp-admin/upload.php3.25 ▲0.0231.23 ▼1.18

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Fix Event Calendar Caching
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼1.221.79 ▲0.1541.30 ▼4.01
Dashboard /wp-admin2,206 ▲185.80 ▲0.91101.34 ▲1.0639.59 ▼3.43
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0436.21 ▲0.5734.54 ▼0.12
Add New Post /wp-admin/post-new.php1,514 ▼017.72 ▲0.24694.42 ▲16.3760.49 ▲10.27
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0497.12 ▼5.0543.21 ▼1.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
Please fix the following
  • 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/fix-event-calendar-caching/fix-event-calendar-caching.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === fix-event-calendar-caching === )
The official readme.txt might help

fix-event-calendar-caching/fix-event-calendar-caching.php Passed 13 tests

The entry point to "Fix Event Calendar Caching" version 2.0.0 is a PHP file that has certain tags in its header comment area
98 characters long description:
This plugin makes the All-in-One Event Calendar's javascript cacheable to improve page load speed.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected96 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2144584
JavaScript199312

PHP code Passed 2 tests

This is a short overview 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.24
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods8100.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.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