77% iwp-client

Code Review | InfiniteWP Client

WordPress plugin InfiniteWP Client scored77%from 54 tests.

About plugin

  • Plugin page: iwp-client
  • Plugin version: 1.12.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 2, 2012
  • Latest release: Jun 30, 2023
  • Number of updates: 224
  • Update frequency: every 18.4 days
  • Top authors: infinitewp (100%)

Code review

54 tests

User reviews

159 reviews

Install metrics

300,000+ active /6,530,867 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▲1.30ms] Passed 4 tests

Analyzing server-side resources used by InfiniteWP Client
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2643.51 ▲0.96
Dashboard /wp-admin3.54 ▲0.2452.02 ▲2.35
Posts /wp-admin/edit.php3.59 ▲0.2356.93 ▲8.26
Add New Post /wp-admin/post-new.php6.05 ▲0.1795.97 ▼2.81
Media Library /wp-admin/upload.php3.46 ▲0.2341.11 ▲4.68

Server storage [IO: ▲7.72MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please fix the following
  • Illegal file modification detected: 1 file (0.91KB) outside of "wp-content/plugins/iwp-client/" and "wp-content/uploads/"
    • (new file) wp-content/mu-plugins/mu-iwp-client.php
Filesystem: 737 new files
Database: no new tables, 12 new options
New WordPress options
iwp_mu_plugin_version
can_compress_scripts
iwp_client_wp_version_old
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
manage-multiple-blogs
iwp_client_all_themes_history
...

Browser metrics Passed 4 tests

Checking browser requirements for InfiniteWP Client
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲15713.49 ▼0.901.59 ▼0.2431.73 ▼15.95
Dashboard /wp-admin2,312 ▲1245.28 ▲0.41109.46 ▼1.7845.15 ▲0.13
Posts /wp-admin/edit.php2,190 ▲982.52 ▲0.5143.04 ▲1.0836.84 ▲1.39
Add New Post /wp-admin/post-new.php1,678 ▲14522.85 ▼0.42653.90 ▼19.2836.19 ▼16.72
Media Library /wp-admin/upload.php1,485 ▲974.56 ▲0.3399.94 ▼15.5044.29 ▼5.82

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • theysaidso_admin_options
    • iwp_mu_plugin_version
    • widget_recent-comments
    • manage-multiple-blogs
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/iwp-client/debug-chart/index.php
  • 509× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Guzzle\\Batch\\BatchTransferInterface' not found in wp-content/plugins/iwp-client/lib/amazon/guzzle/guzzle/src/Guzzle/Batch/BatchClosureTransfer.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/iwp-client/lib/Google2/Service/Reports.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'Guzzle\\Common\\AbstractHasDispatcher' not found in wp-content/plugins/iwp-client/lib/amazon/guzzle/guzzle/src/Guzzle/Service/Resource/ResourceIteratorApplyBatched.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\S3\\Exception\\S3Exception' not found in wp-content/plugins/iwp-client/lib/amazon/aws/aws-sdk-php/src/Aws/S3/Exception/MissingSecurityElementException.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\S3\\Exception\\S3Exception' not found in wp-content/plugins/iwp-client/lib/amazon/aws/aws-sdk-php/src/Aws/S3/Exception/RequestTimeTooSkewedException.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Guzzle\\Http\\Message\\AbstractMessage' not found in wp-content/plugins/iwp-client/lib/amazon/guzzle/guzzle/src/Guzzle/Http/Message/Response.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Guzzle\\Common\\Exception\\RuntimeException' not found in wp-content/plugins/iwp-client/lib/amazon/guzzle/guzzle/src/Guzzle/Service/Exception/CommandException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Common\\Model\\MultipartUpload\\AbstractTransferState' not found in wp-content/plugins/iwp-client/lib/amazon/aws/aws-sdk-php/src/Aws/S3/Model/MultipartUpload/TransferState.php:26
    • > PHP Notice
      Undefined index: iwp_mmb_plugin_dir in wp-content/plugins/iwp-client/lib/Google/Http/Request.php on line 18
    • > PHP Notice
      Undefined index: iwp_mmb_plugin_dir in wp-content/plugins/iwp-client/lib/S3compat.php on line 32

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% 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
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 26 tag instead of maximum 10
You can look at the official readme.txt

iwp-client/init.php 92% from 13 tests

The main PHP script in "InfiniteWP Client" version 1.12.3 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("iwp-client.php" instead of "init.php")

Code Analysis 95% from 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
Everything looks great! No dangerous files found in this plugin126,399 lines of code in 721 files:
LanguageFilesBlank linesComment linesLines of code
PHP69821,29450,845124,344
Markdown1134501,425
JSON580487
XML27072
Ant110134
YAML12025
Perl1418
CSS1003
JavaScript1061

PHP code 0% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,345)
  • Method cyclomatic complexity should be reduced to less than 100 (currently 114)
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity14.88
▷ Minimum class complexity1.00
▷ Maximum class complexity1,345.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity114.00
Code structure
Namespaces73
Interfaces73
Traits0
Classes1,064
▷ Abstract classes444.14%
▷ Concrete classes1,02095.86%
▷ Final classes30.29%
Methods8,433
▷ Static methods3053.62%
▷ Public methods7,88893.54%
▷ Protected methods3083.65%
▷ Private methods2372.81%
Functions264
▷ Named functions22183.71%
▷ Anonymous functions4316.29%
Constants847
▷ Global constants35842.27%
▷ Class constants48957.73%
▷ Public constants489100.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
There were not PNG files found in your plugin