78% full-calendar-js

Code Review | Full Calendar Js

WordPress plugin Full Calendar Js scored78%from 54 tests.

About plugin

  • Plugin page: full-calendar-js
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.6-3.9
  • WordPress version: 6.3.1
  • First release: Mar 7, 2013
  • Latest release: Apr 23, 2014
  • Number of updates: 14
  • Update frequency: every 29.4 days
  • Top authors: Cerzky (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /6,046 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.93ms] Passed 4 tests

An overview of server-side resources used by Full Calendar Js
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0535.38 ▼3.82
Dashboard /wp-admin3.34 ▲0.0444.79 ▼1.99
Posts /wp-admin/edit.php3.39 ▲0.0444.33 ▲0.13
Add New Post /wp-admin/post-new.php5.92 ▲0.0479.00 ▼18.04
Media Library /wp-admin/upload.php3.27 ▲0.0436.28 ▲3.00
Full Calender Settings /wp-admin/options-general.php?page=full-calendar-js/Full-Calendar-Js.php3.2333.74

Server storage [IO: ▲0.82MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Full Calendar Js
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲10113.93 ▼0.3311.00 ▲9.0942.37 ▲5.20
Dashboard /wp-admin2,196 ▲225.53 ▼0.0782.83 ▼7.0236.69 ▼3.32
Posts /wp-admin/edit.php2,104 ▲11.98 ▲0.0235.71 ▲0.0632.65 ▼5.58
Add New Post /wp-admin/post-new.php1,529 ▲323.34 ▼0.31609.79 ▼9.3974.98 ▲7.93
Media Library /wp-admin/upload.php1,401 ▲104.23 ▲0.0497.62 ▼5.2542.00 ▼1.18
Full Calender Settings /wp-admin/options-general.php?page=full-calendar-js/Full-Calendar-Js.php8862.0126.9224.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/full-calendar-js/js/fullcalendar-1.5.4/demos/json-events.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/full-calendar-js/Full-Calendar-Js.php:57

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
The official readme.txt might help

full-calendar-js/Full-Calendar-Js.php 92% from 13 tests

The entry point to "Full Calendar Js" version 1.6 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("full-calendar-js.php" instead of "Full-Calendar-Js.php")

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
Good job! No executable or dangerous file extensions detected14,975 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript63,05799113,412
CSS3185121679
HTML8970671
PHP25150213

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 0.16MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png71.22KB17.58KB▼ 75.31%
js/fullcalendar-1.5.4/demos/cupertino/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png0.10KB0.14KB0.00%
js/fullcalendar-1.5.4/demos/cupertino/images/ui-bg_diagonals-thick_90_eeeeee_40x40.png0.25KB0.15KB▼ 38.25%
js/fullcalendar-1.5.4/demos/cupertino/images/ui-bg_glass_50_3baae3_1x400.png0.17KB0.16KB▼ 6.82%
js/fullcalendar-1.5.4/demos/cupertino/images/ui-icons_3d80b3_256x240.png4.27KB4.11KB▼ 3.78%