10% multiple-ajax-calendar

Code Review | Multiple Ajax Calendar

WordPress plugin Multiple Ajax Calendar scored10%from 54 tests.

About plugin

  • Plugin page: multiple-ajax-cal...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.8.1
  • WordPress version: 6.3.1
  • First release: Dec 16, 2012
  • Latest release: Apr 16, 2014
  • Number of updates: 13
  • Update frequency: every 37.5 days
  • Top authors: xavierserranoa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /4,355 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/multiple-ajax-calendar/multiple-ajax-calendar.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; MultipleAjaxCalendarWidget has a deprecated constructor

Server metrics [RAM: ▼1.82MB] [CPU: ▼54.66ms] Passed 4 tests

This is a short check of server-side resources used by Multiple Ajax Calendar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.305.77 ▼39.50
Dashboard /wp-admin2.19 ▼1.1210.10 ▼42.44
Posts /wp-admin/edit.php2.19 ▼1.176.07 ▼46.60
Add New Post /wp-admin/post-new.php2.19 ▼3.705.78 ▼90.08
Media Library /wp-admin/upload.php2.19 ▼1.055.57 ▼33.70

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_multiple-ajax-calendar

Browser metrics Passed 4 tests

A check of browser resources used by Multiple Ajax Calendar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲11313.83 ▼0.599.17 ▲7.4441.67 ▲2.36
Dashboard /wp-admin2,194 ▲235.55 ▼0.0287.76 ▲0.1340.85 ▲0.92
Posts /wp-admin/edit.php2,099 ▼12.02 ▼0.0036.12 ▼4.6832.12 ▼6.58
Add New Post /wp-admin/post-new.php1,527 ▼823.43 ▲4.99654.82 ▼0.5451.75 ▼12.85
Media Library /wp-admin/upload.php1,399 ▼14.17 ▼0.10101.53 ▼3.5644.02 ▼0.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/multiple-ajax-calendar/multiple-ajax-calendar.php+14
    Methods with the same name as their class will not be constructors in a future version of PHP; MultipleAjaxCalendarWidget has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_multiple-ajax-calendar
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/multiple-ajax-calendar/multiple-ajax-calendar.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Example screenshot), #2 (Example screenshot), #3 (Example screenshot)
  • Plugin Name: Please specify the plugin name on the first line ( === multiple-ajax-calendar === )
You can look at the official readme.txt

multiple-ajax-calendar/multiple-ajax-calendar.php Passed 13 tests

The main PHP file in "Multiple Ajax Calendar" ver. 2.2 adds more information about the plugin and also serves as the entry point for this plugin
85 characters long description:
The wordpress calendar widget enhanced to allow multiple instances of it in one page.

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
Everything looks great! No dangerous files found in this plugin379 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16944288
CSS13191

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity46.00
▷ Minimum class complexity46.00
▷ Maximum class complexity46.00
Average method complexity7.43
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png12.77KB3.40KB▼ 73.42%
screenshot-2.png15.68KB4.14KB▼ 73.60%
screenshot-1.png20.88KB5.46KB▼ 73.85%