10% ifttp-wp

Code Review | If Tag Then Post WordPress

WordPress plugin If Tag Then Post WordPress scored10%from 54 tests.

About plugin

  • Plugin page: ifttp-wp
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 29, 2015
  • Latest release: Nov 19, 2015
  • Number of updates: 4
  • Update frequency: every 5.3 days
  • Top authors: jackreichert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,028 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/ifttp-wp/inc/plugin-settings.php+24
    count(): Parameter must be an array or an object that implements Countable

Server metrics [RAM: ▼2.12MB] [CPU: ▼57.89ms] Passed 4 tests

Server-side resources used by If Tag Then Post WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.0246.24 ▲3.09
Dashboard /wp-admin2.10 ▼1.476.20 ▼47.40
Posts /wp-admin/edit.php2.10 ▼1.587.46 ▼49.78
Add New Post /wp-admin/post-new.php2.10 ▼4.056.93 ▼101.74
Media Library /wp-admin/upload.php2.10 ▼1.396.42 ▼32.62
IFTTP Settings /wp-admin/options-general.php?page=ifttp2.106.71

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for If Tag Then Post WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.37 ▼0.221.96 ▲0.1946.39 ▲3.76
Dashboard /wp-admin2,206 ▲295.65 ▲0.0285.78 ▼3.8435.55 ▼7.87
Posts /wp-admin/edit.php2,108 ▲82.03 ▲0.0339.57 ▼1.7233.66 ▼2.62
Add New Post /wp-admin/post-new.php1,533 ▲117.68 ▼5.67677.65 ▼12.5261.04 ▲1.86
Media Library /wp-admin/upload.php1,408 ▲54.30 ▲0.09112.96 ▲5.7347.02 ▼0.51
IFTTP Settings /wp-admin/options-general.php?page=ifttp8672.0726.6034.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/ifttp-wp/inc/plugin-settings.php+24
    count(): Parameter must be an array or an object that implements Countable
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=ifttp
    • > Warning in wp-content/plugins/ifttp-wp/inc/plugin-settings.php+24
    count(): Parameter must be an array or an object that implements Countable
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ifttp
    • > Notice in wp-content/plugins/ifttp-wp/inc/plugin-settings.php+129
    Trying to access array offset on value of type bool
  • 28 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ifttp
    • > Notice in wp-content/plugins/ifttp-wp/inc/plugin-settings.php+129
    Trying to access array offset on value of type null

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ifttp-wp/ifttp-wp.php:34

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 93% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Screenshots: Screenshot #1 (Easily add or remove conditions.) image not found
  • Requires at least: Version format is invalid
The official readme.txt might help

ifttp-wp/ifttp-wp.php Passed 13 tests

The entry point to "If Tag Then Post WordPress" version 0.1 is a PHP file that has certain tags in its header comment area
91 characters long description:
Lets you create conditional actions, extends the functionality of the WordPress mobile app.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected168 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22745135
JavaScript13321
CSS11012

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity7.50
▷ Minimum class complexity6.00
▷ Maximum class complexity9.00
Average method complexity1.87
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1173.33%
▷ Protected methods00.00%
▷ Private methods426.67%
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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin