62% list-calendar

Code Review | List-calendar

WordPress plugin List-calendar scored62%from 54 tests.

About plugin

  • Plugin page: list-calendar
  • Plugin version: 0.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.4-4.3
  • WordPress version: 6.3.1
  • First release: Aug 18, 2015
  • Latest release: Aug 21, 2015
  • Number of updates: 7
  • Update frequency: every 0.4 days
  • Top authors: s-hiroshi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,144 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.68MB] [CPU: ▼31.47ms] Passed 4 tests

This is a short check of server-side resources used by List-calendar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2037.50 ▼8.22
Dashboard /wp-admin3.26 ▼0.0424.93 ▼20.85
Posts /wp-admin/edit.php3.26 ▼0.0924.29 ▼24.83
Add New Post /wp-admin/post-new.php3.26 ▼2.6225.45 ▼71.99
Media Library /wp-admin/upload.php3.26 ▲0.0324.45 ▼8.02
Add New /wp-admin/admin.php?page=ltcr-new3.2623.65
Settings /wp-admin/admin.php?page=ltcr-settings3.2624.78
List /wp-admin/admin.php?page=ltcr3.2624.43

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for List-calendar
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8114.45 ▼0.181.81 ▼0.3440.21 ▼5.97
Dashboard /wp-admin2,236 ▲514.83 ▼1.05109.98 ▲7.3841.50 ▼3.97
Posts /wp-admin/edit.php2,116 ▲271.97 ▼0.1739.56 ▲1.4736.70 ▲3.46
Add New Post /wp-admin/post-new.php1,564 ▲5018.31 ▲0.80604.68 ▼81.1950.30 ▼2.85
Media Library /wp-admin/upload.php1,415 ▲334.15 ▼0.0696.31 ▼13.4343.07 ▼4.95
Add New /wp-admin/admin.php?page=ltcr-new1,4832.2731.3028.62
Settings /wp-admin/admin.php?page=ltcr-settings9922.2828.4326.57
List /wp-admin/admin.php?page=ltcr1,0602.2929.3029.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ltcr
    • > User deprecated in wp-includes/functions.php+5453
    Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.

SRP 50% 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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/list-calendar/admin/class-list.php on line 7
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/list-calendar/admin/class-list.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/list-calendar/list-calendar.php:33
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/list-calendar/admin/class-list.php on line 7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=ltcr-settings
    • > Network (severe)
    wp-content/plugins/list-calendar/admin/css/style.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: calendar, shortcode

list-calendar/list-calendar.php 92% from 13 tests

The primary PHP file in "List-calendar" version 0.0.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,857 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP171895151,360
CSS2455221
PO File26680169
JavaScript43250107

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity11.67
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods63
▷ Static methods1219.05%
▷ Public methods4673.02%
▷ Protected methods00.00%
▷ Private methods1726.98%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants1083.33%
▷ Class constants216.67%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.62MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png142.22KB47.24KB▼ 66.79%
screenshot-3.png135.47KB42.63KB▼ 68.53%
screenshot-5.png92.33KB35.03KB▼ 62.06%
screenshot-1.png145.60KB43.59KB▼ 70.06%
screenshot-4.png118.74KB36.26KB▼ 69.46%