93% infusionsoft-for-developers

Code Review | Infusionsoft WordPress Developers Plugin

WordPress plugin Infusionsoft WordPress Developers Plugin scored 93% from 54 tests.

About plugin

  • Plugin page: infusionsoft-for-...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-3.9
  • WordPress version: 5.9.2
  • First release: Aug 21, 2013
  • Latest release: May 10, 2014
  • Number of updates: 7
  • Update frequency: every 38.6 days
  • Top authors: ryno267 (57.14%)andrewryno (57.14%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,474 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼288.49ms] Passed 4 tests

Server-side resources used by Infusionsoft WordPress Developers Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.2565.10 ▲3.23
Dashboard /wp-admin3.61 ▲0.2039.55 ▲2.93
Posts /wp-admin/edit.php3.83 ▲0.1947.01 ▲0.62
Add New Post /wp-admin/post-new.php7.13 ▲0.16107.17 ▼1,160.73
Media Library /wp-admin/upload.php3.55 ▲0.2535.80 ▲6.13
Infusionsoft /wp-admin/options-general.php?page=infusionsoft3.4529.71

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Infusionsoft WordPress Developers Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲1415.82 ▲0.125.60 ▼0.082.08 ▼0.40
Dashboard /wp-admin2,894 ▲336.15 ▼0.04120.03 ▼15.75176.11 ▼26.60
Posts /wp-admin/edit.php2,693 ▲23.24 ▲0.0162.13 ▲0.68137.41 ▼8.93
Add New Post /wp-admin/post-new.php1,720 ▲5921.86 ▲5.46439.30 ▲25.66214.16 ▲46.77
Media Library /wp-admin/upload.php1,697 ▲25.52 ▼0.01151.40 ▲12.62219.32 ▲27.09
Infusionsoft /wp-admin/options-general.php?page=infusionsoft1,0272.4253.04121.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-includes/class-IXR.php' (include_path='.:/usr/share/php') in wp-content/plugins/infusionsoft-for-developers/infusionsoft.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/infusionsoft-for-developers/infusionsoft-examples.php:74
    • > PHP Warning
      require_once(ABSPATH/wp-includes/class-IXR.php): failed to open stream: No such file or directory in wp-content/plugins/infusionsoft-for-developers/infusionsoft.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/infusionsoft-for-developers/infusionsoft-wp.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/infusionsoft-for-developers/infusionsoft-settings.php:5
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/infusionsoft-for-developers/infusionsoft.php on line 4

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

readme.txt 94% 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
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

infusionsoft-for-developers/infusionsoft-wp.php 85% from 13 tests

The primary PHP file in "Infusionsoft WordPress Developers Plugin" version 0.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 162 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("infusionsoft-for-developers.php" instead of "infusionsoft-wp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin298 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP55792259
Markdown121039

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity5.20
▷ Minimum class complexity3.00
▷ Maximum class complexity7.00
Average method complexity1.95
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
No PNG files were detected