84% postical

Code Review | postical (iCal exporter)

WordPress plugin postical (iCal exporter) scored84%from 54 tests.

About plugin

  • Plugin page: postical
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.5
  • WordPress version: 6.3.1
  • First release: Jun 12, 2016
  • Latest release: Apr 26, 2018
  • Number of updates: 9
  • Update frequency: every 76.1 days
  • Top authors: matsuoshi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /922 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.48ms] Passed 4 tests

Server-side resources used by postical (iCal exporter)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.70 ▼2.92
Dashboard /wp-admin3.32 ▲0.0250.11 ▼0.77
Posts /wp-admin/edit.php3.37 ▲0.0147.83 ▼2.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.99 ▲0.42
Media Library /wp-admin/upload.php3.24 ▲0.0134.02 ▲0.35
postical /wp-admin/options-general.php?page=postical_setting3.2131.59

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Please fix the following
  • Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/postical/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/postical/assets-wp-repo/banner-1544\303\227500.png"
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
postical_activated
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for postical (iCal exporter)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.21 ▼1.541.71 ▼0.6544.65 ▼10.22
Dashboard /wp-admin2,210 ▲224.86 ▼1.00105.72 ▼9.2739.47 ▼4.03
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0339.55 ▲5.8635.84 ▼1.11
Add New Post /wp-admin/post-new.php1,517 ▼1117.64 ▼5.46694.25 ▼26.2453.49 ▲1.67
Media Library /wp-admin/upload.php1,392 ▲74.20 ▲0.0296.10 ▼12.5742.14 ▼3.51
postical /wp-admin/options-general.php?page=postical_setting7852.0326.7825.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • 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
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/postical/postical.php:24

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: schedule, calendar, ical, export, exporter

postical/postical.php Passed 13 tests

"postical (iCal exporter)" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
84 characters long description:
export the posts schedules as iCal format. access to http://YOUR-WP-ADDRESS/postical

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected192 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15262192

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.23
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1076.92%
▷ Protected methods00.00%
▷ Private methods323.08%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets-wp-repo/banner-772x250.png44.58KB14.35KB▼ 67.82%
assets-wp-repo/banner-1544×500.png60.03KB16.49KB▼ 72.53%