73% vertycal

Code Review | VertyCal

WordPress plugin VertyCal scored73%from 54 tests.

About plugin

  • Plugin page: vertycal
  • Plugin version: 1.0.31
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: Jun 12, 2019
  • Latest release: Jul 25, 2022
  • Number of updates: 13
  • Update frequency: every 87.6 days
  • Top authors: tradesouthwest@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,326 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.37MB] [CPU: ▼3.69ms] Passed 4 tests

This is a short check of server-side resources used by VertyCal
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3646.10 ▲10.76
Dashboard /wp-admin3.71 ▲0.3644.42 ▼21.50
Posts /wp-admin/edit.php3.79 ▲0.4350.78 ▲6.23
Add New Post /wp-admin/post-new.php6.28 ▲0.3987.58 ▼8.67
Media Library /wp-admin/upload.php3.59 ▲0.3740.63 ▲9.20
Schedule Categories /wp-admin/edit-tags.php?taxonomy=vertycal_category&post_type=vertycal3.7137.53
All Schedules /wp-admin/edit.php?post_type=vertycal3.6440.74
Add New /wp-admin/post-new.php?post_type=vertycal3.8153.43
VertyCal Settings /wp-admin/edit.php?post_type=vertycal&page=vertycal3.5636.33

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

VertyCal: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,121 ▲36013.79 ▼0.6212.67 ▲11.1931.17 ▼10.26
Dashboard /wp-admin2,360 ▲1835.08 ▼0.5585.96 ▼0.5190.15 ▲47.16
Posts /wp-admin/edit.php2,150 ▲532.39 ▲0.4035.43 ▼0.0633.84 ▼3.28
Add New Post /wp-admin/post-new.php1,600 ▲7218.20 ▼5.00627.73 ▼29.1646.01 ▼7.67
Media Library /wp-admin/upload.php1,473 ▲734.49 ▲0.2889.91 ▼18.1740.11 ▼8.26
Schedule Categories /wp-admin/edit-tags.php?taxonomy=vertycal_category&post_type=vertycal1,3452.2128.7431.23
All Schedules /wp-admin/edit.php?post_type=vertycal1,1922.3433.9129.38
Add New /wp-admin/post-new.php?post_type=vertycal2,8498.25178.7969.70
VertyCal Settings /wp-admin/edit.php?post_type=vertycal&page=vertycal1,5202.6549.8334.84

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/vertycal/templates/comments.php
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/vertycal/templates/single-vertycal.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/vertycal/templates/scheduler-new.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/vertycal/templates/scheduler-content.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/vertycal/templates/single-vertycal_content.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vertycal/templates/scheduler-options.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vertycal_state_checkbox_showyear() in wp-content/plugins/vertycal/templates/vertycal-loop-table.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/vertycal/templates/vertycal-comments.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/vertycal/templates/category-vertycal_category.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/vertycal/templates/scheduler.php:6

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/post-new.php?post_type=vertycal
    • > Network (severe)
    wp-content/plugins/vertycal/prop/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 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
7 plugin tags: events, calendar, scheduler, delivery, schedule...

vertycal/vertycal.php Passed 13 tests

The entry point to "VertyCal" version 1.0.31 is a PHP file that has certain tags in its header comment area
99 characters long description:
Scheduling based application to manage service calls or list schedules. Settings in Scheduler menu.

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
No dangerous file extensions were detected5,270 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP275509912,970
CSS347881,624
PO File1211215574
JavaScript72425100
Markdown1002

PHP code Passed 2 tests

This is a very shot 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.27
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%
Functions118
▷ Named functions11799.15%
▷ Anonymous functions10.85%
Constants3
▷ Global constants3100.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
6 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
prop/dashicon160x160.png19.83KB8.72KB▼ 56.00%
prop/bezeledicon.png10.78KB5.39KB▼ 50.02%
prop/vdasha.png19.16KB6.91KB▼ 63.95%
prop/css/call-32x32.png0.61KB0.77KB0.00%
prop/css/vgps24x27.png1.00KB1.11KB0.00%