68% wptt-ics-feeds

Code Review | WPTT ICS Feeds

WordPress plugin WPTT ICS Feeds scored68%from 54 tests.

About plugin

  • Plugin page: wptt-ics-feeds
  • Plugin version: 1.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.5.1
  • WordPress version: 6.3.1
  • First release: May 28, 2013
  • Latest release: Sep 24, 2020
  • Number of updates: 22
  • Update frequency: every 121.6 days
  • Top authors: curtismchale (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /998 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.82ms] Passed 4 tests

Analyzing server-side resources used by WPTT ICS Feeds
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.80 ▲0.41
Dashboard /wp-admin3.35 ▲0.0448.90 ▼1.79
Posts /wp-admin/edit.php3.46 ▲0.1150.81 ▼0.85
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.81 ▼11.28
Media Library /wp-admin/upload.php3.27 ▲0.0434.13 ▼1.37

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WPTT ICS Feeds
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.111.80 ▲0.1948.51 ▲2.68
Dashboard /wp-admin2,195 ▲185.58 ▲0.0085.49 ▼2.2838.67 ▼6.39
Posts /wp-admin/edit.php2,100 ▲32.01 ▼0.0143.35 ▲6.3636.30 ▼1.68
Add New Post /wp-admin/post-new.php1,526 ▼523.00 ▼0.11604.64 ▼50.9748.61 ▼3.29
Media Library /wp-admin/upload.php1,403 ▲94.24 ▲0.0297.36 ▼4.7443.47 ▼1.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method WPTT_ICS_Feeds::uninstall() should not be called statically
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wptt-ics-feeds/tests/bootstrap.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wptt-ics-feeds/wptt-ics-feeds.php:38
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wptt-ics-feeds/tests/test-feed-links.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wptt-ics-feeds/tests/test-filters.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wptt-ics-feeds/wptt-ics-feeds/wptt-ics-feeds.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: ics, calendar

wptt-ics-feeds/wptt-ics-feeds.php Passed 13 tests

"WPTT ICS Feeds" version 1.4.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
44 characters long description:
Adds an ICS compatible feed for future posts

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
There were no executable files found in this plugin496 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP6192356303
Bourne Shell12111123
Markdown242054
XML10016

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity3.67
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods42
▷ Static methods00.00%
▷ Public methods3788.10%
▷ Protected methods00.00%
▷ Private methods511.90%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot.png115.63KB42.41KB▼ 63.32%
wptt-ics-feeds/screenshot.png115.63KB42.41KB▼ 63.32%