77% calendapp

Code Review | CalendApp

WordPress plugin CalendApp scored 77% from 54 tests.

About plugin

  • Plugin page: calendapp
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5
  • WordPress version: 6.3.1
  • First release: Jan 24, 2013
  • Latest release: Jan 27, 2013
  • Number of updates: 16
  • Update frequency: every 0.2 days
  • Top authors: margiov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,884 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.30MB] [CPU: ▼18.79ms] Passed 4 tests

This is a short check of server-side resources used by CalendApp
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.40 ▼4.73
Dashboard /wp-admin3.33 ▲0.0247.66 ▲1.31
Posts /wp-admin/edit.php3.38 ▲0.0246.31 ▼0.53
Add New Post /wp-admin/post-new.php4.62 ▼1.2741.19 ▼69.21
Media Library /wp-admin/upload.php3.25 ▲0.0234.34 ▼0.70
Imposta intervallo /wp-admin/admin.php?page=Set_Range_Event3.2734.03
Impostazioni /wp-admin/admin.php?page=CalendApp3.2425.82
Help /wp-admin/admin.php?page=Help3.2433.13
Inserisci appello /wp-admin/admin.php?page=Enter_event3.2730.79
Calendario appelli /wp-admin/admin.php?page=Vis_event3.2431.34

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 384 new files
Database: no new tables, 7 new options
New WordPress options
widget_my_widget
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by CalendApp
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲18713.68 ▼0.696.31 ▲4.6544.08 ▲4.55
Dashboard /wp-admin2,250 ▲595.79 ▲0.9698.66 ▼2.3939.10 ▼2.35
Posts /wp-admin/edit.php2,130 ▲412.02 ▲0.0240.58 ▲7.0536.45 ▲2.45
Add New Post /wp-admin/post-new.php1,556 ▲3718.24 ▼4.84596.60 ▼68.1755.52 ▼3.11
Media Library /wp-admin/upload.php1,429 ▲414.15 ▼0.14105.69 ▲3.6248.85 ▼0.01
Imposta intervallo /wp-admin/admin.php?page=Set_Range_Event8921.9531.7437.26
Impostazioni /wp-admin/admin.php?page=CalendApp8581.7123.6528.04
Help /wp-admin/admin.php?page=Help9012.1622.6326.18
Inserisci appello /wp-admin/admin.php?page=Enter_event1,3261.9427.3426.53
Calendario appelli /wp-admin/admin.php?page=Vis_event8292.1126.8529.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_my_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/calendapp/Help.php
    • > /wp-content/plugins/calendapp/Gcal_login.php
    • > /wp-content/plugins/calendapp/jQuery_interop.php
    • > /wp-content/plugins/calendapp/Set_interval.php
  • 673× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      require_once(Zend/Gdata/Extension.php): failed to open stream: No such file or directory in wp-content/plugins/calendapp/Zend/Gdata/YouTube/Extension/Occupation.php on line 27
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Gdata/App/Extension.php' (include_path='.:/usr/share/php') in wp-content/plugins/calendapp/Zend/Gdata/Media/Extension/MediaCategory.php on line 27
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Gdata/Extension.php' (include_path='.:/usr/share/php') in wp-content/plugins/calendapp/Zend/Gdata/Geo/Extension/GmlPos.php on line 27
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Gdata/App/Extension.php' (include_path='.:/usr/share/php') in wp-content/plugins/calendapp/Zend/Gdata/App/Extension/Uri.php on line 27
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Http/Client.php' (include_path='.:/usr/share/php') in wp-content/plugins/calendapp/Zend/Gdata/HttpClient.php on line 26
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Gdata/Photos.php' (include_path='.:/usr/share/php') in wp-content/plugins/calendapp/Zend/Gdata/Photos/AlbumFeed.php on line 27
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Gdata/Gapps/Query.php' (include_path='.:/usr/share/php') in wp-content/plugins/calendapp/Zend/Gdata/Gapps/UserQuery.php on line 27
    • > PHP Fatal error
      require_once(): Failed opening required 'Zend/Gdata/Entry.php' (include_path='.:/usr/share/php') in wp-content/plugins/calendapp/Zend/Gdata/Gapps/UserEntry.php on line 27
    • > PHP Warning
      require_once(Zend/Gdata/App/Exception.php): failed to open stream: No such file or directory in wp-content/plugins/calendapp/Zend/Gdata/App/AuthException.php on line 26
    • > PHP Warning
      require_once(Zend/Gdata/Extension.php): failed to open stream: No such file or directory in wp-content/plugins/calendapp/Zend/Gdata/YouTube/Extension/Description.php on line 27

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (2.) image not found
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

calendapp/CalendApp.php 85% from 13 tests

This is the main PHP file of "CalendApp" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("calendapp.php" instead of "CalendApp.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 299 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected31,520 lines of code in 369 files:
LanguageFilesBlank linesComment linesLines of code
PHP3655,58528,82830,163
CSS341531,122
JavaScript11644235

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.96
▷ Minimum class complexity1.00
▷ Maximum class complexity175.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces4
Traits0
Classes346
▷ Abstract classes102.89%
▷ Concrete classes33697.11%
▷ Final classes10.30%
Methods2,189
▷ Static methods683.11%
▷ Public methods2,03492.92%
▷ Protected methods1536.99%
▷ Private methods20.09%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants172
▷ Global constants00.00%
▷ Class constants172100.00%
▷ Public constants172100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
13 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
smoothness/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
smoothness/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
smoothness/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
smoothness/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%