84% post-to-infusionsoft

Code Review | Post to infusionsoft

WordPress plugin Post to infusionsoft scored84%from 54 tests.

About plugin

  • Plugin page: post-to-infusionsoft
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.3.2
  • WordPress version: 6.3.1
  • First release: Aug 17, 2018
  • Latest release: Jan 13, 2020
  • Number of updates: 10
  • Update frequency: every 51.4 days
  • Top authors: farhanhaider73 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /598 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.76ms] Passed 4 tests

Server-side resources used by Post to infusionsoft
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.18 ▲3.39
Dashboard /wp-admin3.38 ▲0.0349.78 ▼11.85
Posts /wp-admin/edit.php3.49 ▲0.1353.54 ▼3.20
Add New Post /wp-admin/post-new.php5.98 ▲0.0996.89 ▼6.86
Media Library /wp-admin/upload.php3.30 ▲0.0737.85 ▲2.89

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Post to infusionsoft: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲7714.36 ▲0.133.55 ▲1.4445.12 ▲4.43
Dashboard /wp-admin2,220 ▲535.59 ▲0.0183.16 ▼50.2537.97 ▼11.52
Posts /wp-admin/edit.php2,131 ▲312.02 ▲0.0142.56 ▲0.3236.34 ▼4.76
Add New Post /wp-admin/post-new.php1,560 ▲3222.90 ▼0.19635.20 ▼64.6669.12 ▲0.96
Media Library /wp-admin/upload.php1,425 ▲224.24 ▲0.01101.28 ▲0.5643.83 ▼2.15

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/post-to-infusionsoft/api_data/conn.cfg.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI ("#")
  • Screenshots: These screenshots lack descriptions #2, #3 in post-to-infusionsoft/assets to your readme.txt
You can take inspiration from this readme.txt

post-to-infusionsoft/post-to-infusionsoft.php Passed 13 tests

The main PHP file in "Post to infusionsoft" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
52 characters long description:
Here you can send form data to infusionsoft account.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin5,204 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP122,8172,8485,195
CSS4105
JavaScript4034

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity25.50
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods135
▷ Static methods10.74%
▷ Public methods13398.52%
▷ Protected methods10.74%
▷ Private methods10.74%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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