10% is-wp-connector

Code Review | IS-WP Connector

WordPress plugin IS-WP Connector scored10%from 54 tests.

About plugin

  • Plugin page: is-wp-connector
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 11, 2014
  • Latest release: Jun 19, 2014
  • Number of updates: 9
  • Update frequency: every 13.4 days
  • Top authors: colinhahn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /646 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
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/lib/xmlrpc.inc+804
    Methods with the same name as their class will not be constructors in a future version of PHP; xmlrpc_client has a deprecated constructor

Server metrics [RAM: ▼1.12MB] [CPU: ▼48.21ms] Passed 4 tests

This is a short check of server-side resources used by IS-WP Connector
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▼0.597.81 ▼32.10
Dashboard /wp-admin2.89 ▼0.459.23 ▼52.02
Posts /wp-admin/edit.php2.89 ▼0.468.94 ▼31.72
Add New Post /wp-admin/post-new.php2.89 ▼2.999.67 ▼76.98
Media Library /wp-admin/upload.php2.89 ▼0.337.99 ▼26.19
InfusionSoft /wp-admin/options-general.php?page=infusion_api2.899.02

Server storage [IO: ▲1.22MB] [DB: ▲0.31MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for IS-WP Connector
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.25 ▼1.145.87 ▲3.9648.21 ▲3.52
Dashboard /wp-admin2,210 ▲224.84 ▼1.04106.85 ▲3.0340.63 ▲0.82
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0140.48 ▲5.9335.58 ▲0.02
Add New Post /wp-admin/post-new.php1,549 ▲2318.42 ▼5.02600.61 ▲14.9273.14 ▲16.89
Media Library /wp-admin/upload.php1,395 ▲44.19 ▼0.0298.02 ▲0.2742.30 ▼2.17
InfusionSoft /wp-admin/options-general.php?page=infusion_api7872.1822.9024.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 50% 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
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/lib/xmlrpc.inc+804
    Methods with the same name as their class will not be constructors in a future version of PHP; xmlrpc_client has a deprecated constructor
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 25% 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=infusion_api
    • > Deprecated in wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/lib/xmlrpc.inc+804
    Methods with the same name as their class will not be constructors in a future version of PHP; xmlrpc_client has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=infusion_api
    • > Deprecated in wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/lib/xmlrpc.inc+1924
    Methods with the same name as their class will not be constructors in a future version of PHP; xmlrpcresp has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=infusion_api
    • > Deprecated in wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/lib/xmlrpc.inc+2082
    Methods with the same name as their class will not be constructors in a future version of PHP; xmlrpcmsg has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=infusion_api
    • > Deprecated in wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/lib/xmlrpc.inc+2707
    Methods with the same name as their class will not be constructors in a future version of PHP; xmlrpcval has a deprecated constructor

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
  • 7× PHP files output text when accessed directly:
    • > /wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/demo/client/agesort.php
    • > /wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/demo/client/client.php
    • > /wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/demo/client/mail.php
    • > /wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/test/verify_compat.php
    • > /wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/debugger/action.php
    • > /wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/debugger/index.php
    • > /wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/debugger/controller.php
  • 66× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'PHPUnit/TestCase.php' (include_path='.:/usr/share/php') in wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/test/PHPUnit/TestSuite.php on line 23
    • > PHP Fatal error
      require_once(): Failed opening required 'xmlrpc.inc' (include_path='.:/usr/share/php') in wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/test/parse_args.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wrap_php_function() in wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/demo/server/server.php:136
    • > PHP Fatal error
      require_once(): Failed opening required 'xmlrpc.inc' (include_path='.:/usr/share/php') in wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/test/parse_args.php on line 17
    • > PHP Fatal error
      Uncaught Error: Class 'xmlrpc_server' not found in wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/demo/server/discuss.php:112
    • > PHP Warning
      include(): Failed opening 'xmlrpc.inc' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/demo/server/server.php on line 21
    • > PHP Warning
      include(xmlrpc.inc): failed to open stream: No such file or directory in wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/demo/vardemo.php on line 5
    • > PHP Warning
      include(): Failed opening 'xmlrpc.inc' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/demo/client/wrap.php on line 11
    • > PHP Fatal error
      require_once(): Failed opening required 'xmlrpc.inc' (include_path='.:/usr/share/php') in wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/test/parse_args.php on line 17
    • > PHP Notice
      Undefined variable: xmlrpcString in wp-content/plugins/is-wp-connector/xmlrpc-3.0.0.beta/demo/server/discuss.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: No valid plugin tags found
  • Donate link: Invalid URI found ("")
The official readme.txt might help

is-wp-connector/bootstrap.php 92% from 13 tests

The primary PHP file in "IS-WP Connector" version 2.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("is-wp-connector.php" instead of "bootstrap.php")

Code Analysis Passed 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
Success! There were no dangerous files found in this plugin14,161 lines of code in 91 files:
LanguageFilesBlank linesComment linesLines of code
PHP391,0493,2409,189
XML1903213,330
HTML47001,471
make24444115
Perl116531
Python110225

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity13.08
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods148
▷ Static methods10.68%
▷ Public methods148100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions74
▷ Named functions74100.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 images were found in this plugin