84% ajax-archive-calendar

Code Review | Ajax Archive Calendar

WordPress plugin Ajax Archive Calendar scored84%from 54 tests.

About plugin

  • Plugin page: ajax-archive-cale...
  • Plugin version: 2.6.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2014
  • Latest release: Oct 12, 2023
  • Number of updates: 22
  • Update frequency: every 160.4 days
  • Top authors: osmansorkar (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /14,478 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼8.84ms] Passed 4 tests

Analyzing server-side resources used by Ajax Archive Calendar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0744.75 ▲0.30
Dashboard /wp-admin3.38 ▲0.0351.80 ▼13.01
Posts /wp-admin/edit.php3.44 ▲0.0749.26 ▼8.88
Add New Post /wp-admin/post-new.php5.97 ▲0.0791.04 ▼12.19
Media Library /wp-admin/upload.php3.31 ▲0.0736.45 ▼1.27

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_ajax_ac_widget
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Ajax Archive Calendar: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲11313.85 ▼0.818.45 ▲6.6445.43 ▼1.68
Dashboard /wp-admin2,198 ▲245.61 ▼0.0494.82 ▼4.5842.98 ▼0.11
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0139.48 ▼0.6634.68 ▼2.72
Add New Post /wp-admin/post-new.php1,526 ▼223.24 ▲0.06669.61 ▲23.8660.70 ▲5.74
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.07105.94 ▼0.9245.22 ▲3.12

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_ajax_ac_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at 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/ajax-archive-calendar/ajax-archive-calendar.php:14

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 96% from 29 tests

readme.txt Passed 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
9 plugin tags: costomazie calendar, ajax archive, jquery calendar, widget, ajax calendar...

ajax-archive-calendar/ajax-archive-calendar.php 92% from 13 tests

The main PHP script in "Ajax Archive Calendar" version 2.6.8 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin473 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19369473

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity4.40
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin