10% infility-global

Code Review | Infility Global

WordPress plugin Infility Global scored10%from 54 tests.

About plugin

  • Plugin page: infility-global
  • Plugin version: 1.7.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3.2
  • WordPress version: 6.3.1
  • First release: Jul 26, 2022
  • Latest release: Nov 28, 2023
  • Number of updates: 49
  • Update frequency: every 10.0 days
  • Top authors: cjjparadoxmax (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,399 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/infility-global/infility_global.php+44
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.86ms] Passed 4 tests

Server-side resources used by Infility Global
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.25 ▼11.19
Dashboard /wp-admin3.32 ▲0.0246.89 ▼7.40
Posts /wp-admin/edit.php3.37 ▲0.0148.25 ▼0.91
Add New Post /wp-admin/post-new.php5.92 ▲0.0496.00 ▲0.07
Media Library /wp-admin/upload.php3.24 ▲0.0236.54 ▲4.57

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 82 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
db_upgraded
infility_global_configure
widget_theysaidso_widget
theysaidso_admin_options
clean_revision
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Infility Global
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲13013.36 ▼0.898.18 ▲6.3340.68 ▼4.21
Dashboard /wp-admin2,214 ▲345.68 ▲0.0790.63 ▼1.8784.51 ▲37.60
Posts /wp-admin/edit.php2,119 ▲191.98 ▼0.0539.40 ▼1.4437.71 ▼0.75
Add New Post /wp-admin/post-new.php1,547 ▲2123.18 ▼0.17752.27 ▲80.3752.42 ▼0.78
Media Library /wp-admin/upload.php1,413 ▲104.20 ▲0.0195.27 ▼2.6272.79 ▲30.81

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
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • clean_revision
    • infility_global_configure
    • widget_theysaidso_widget
    • widget_recent-posts

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
Good news, no errors were detected

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
Please fix the following items
  • 13× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/infility-global/widgets/keyword-pages/templates/keywords.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/infility-global/widgets/infility-redirect/infility-redirect.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/infility-global/widgets/contact-form-plugins/contact-form-plugins.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/infility-global/include/infility_guide_page.php:3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/infility-global/widgets/infility-chat-tool/infility-chat-tool.php on line 373
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/infility-global/infility_global.php:21
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/infility-global/widgets/infility-chat-tool/infility-chat-tool.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/infility-global/widgets/keyword-pages/templates/keyword-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/infility-global/include/infility_setting_page.php:2
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/infility-global/widgets/infility-chat-tool/infility-chat-tool.php on line 23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

infility-global/infility_global.php 85% from 13 tests

The principal PHP file in "Infility Global" v. 1.7.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.6")
  • Main file name: Name the main plugin file the same as the plugin slug ("infility-global.php" instead of "infility_global.php")

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
Success! There were no dangerous files found in this plugin8,613 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
PHP206552525,566
JavaScript161141152,290
CSS122530623
PO File15061134

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.34
Average class complexity27.31
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity3.93
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods134
▷ Static methods3324.63%
▷ Public methods11182.84%
▷ Protected methods1511.19%
▷ Private methods85.97%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
27 PNG files occupy 0.69MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
widgets/contact-form-plugins/images/step_1.png27.65KB9.60KB▼ 65.27%
widgets/infility-redirect/images/step_1.png27.65KB9.60KB▼ 65.27%
images/guide/elementor_breadcrumbs_2.png16.63KB6.06KB▼ 63.58%
images/guide/301jump_2.png49.77KB12.33KB▼ 75.22%
images/guide/chat_tool_1.png18.75KB6.13KB▼ 67.32%