10% catalyst-connect

Code Review | Catalyst Connect

WordPress plugin Catalyst Connect scored10%from 54 tests.

About plugin

  • Plugin page: catalyst-connect
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Aug 30, 2012
  • Latest release: Apr 26, 2013
  • Number of updates: 9
  • Update frequency: every 27.2 days
  • Top authors: CobaltApps (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,699 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/catalyst-connect/catalyst-connect.php+37
    Methods with the same name as their class will not be constructors in a future version of PHP; CatalystConnect has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼51.53ms] Passed 4 tests

This is a short check of server-side resources used by Catalyst Connect
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.30 ▼38.94
Dashboard /wp-admin2.10 ▼1.205.81 ▼40.60
Posts /wp-admin/edit.php2.10 ▼1.266.39 ▼41.07
Add New Post /wp-admin/post-new.php2.10 ▼3.796.65 ▼85.52
Media Library /wp-admin/upload.php2.10 ▼1.135.50 ▼30.63
Catalyst Connect /wp-admin/admin.php?page=catalyst-connect/inc/admin.php2.105.91

Server storage [IO: ▲0.31MB] [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: 13 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
catalyst_connect
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Catalyst Connect
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7213.24 ▼1.161.71 ▼0.4944.48 ▲2.12
Dashboard /wp-admin2,207 ▲165.87 ▲0.9798.57 ▼1.1638.49 ▼6.29
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0243.02 ▲5.6335.67 ▼1.81
Add New Post /wp-admin/post-new.php1,532 ▼123.10 ▼0.14643.73 ▼50.5354.07 ▼5.20
Media Library /wp-admin/upload.php1,395 ▲134.27 ▲0.1093.65 ▼7.7142.69 ▼3.32
Catalyst Connect /wp-admin/admin.php?page=catalyst-connect/inc/admin.php9621.8128.8531.52

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/catalyst-connect/catalyst-connect.php+37
    Methods with the same name as their class will not be constructors in a future version of PHP; CatalystConnect has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • catalyst_connect
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=catalyst-connect/inc/admin.php
    • > Deprecated in wp-content/plugins/catalyst-connect/catalyst-connect.php+37
    Methods with the same name as their class will not be constructors in a future version of PHP; CatalystConnect has a deprecated constructor
    • > GET request to /wp-admin/admin.php?page=catalyst-connect/inc/admin.php
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method CatalystConnect::init() should not be called statically
    • > GET request to /wp-admin/admin.php?page=catalyst-connect/inc/admin.php
    • > Deprecated in wp-content/plugins/catalyst-connect/inc/admin.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; CatalystConnectAdmin has a deprecated constructor

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
The following issues need your attention
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'CatalystConnect' not found in wp-content/plugins/catalyst-connect/inc/frontend.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'CatalystConnect' not found in wp-content/plugins/catalyst-connect/inc/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/catalyst-connect/inc/options_page.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/catalyst-connect/catalyst-connect.php:205

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

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
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Catalyst Connect executes it's functionality automatically based on which Plugins are currently active.), #2 (With the options provided you can "turn off" certain functionality and then manually add it back in as needed.), #3 (Use Catalyst Connect with one, two or all three of these 3rd party Plugins.), #4 (When all three Plugins are inactive Catalyst Connect is too...at least in terms of executing integration code.)
The official readme.txt is a good inspiration

catalyst-connect/catalyst-connect.php 85% from 13 tests

"Catalyst Connect" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("catalyst-connect/localization")
  • Description: Keep the plugin description shorter than 140 characters (currently 144 characters long)

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
Everything looks great! No dangerous files found in this plugin698 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4103183569
PO File1263465
JavaScript110438
CSS13026

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity18.67
▷ Minimum class complexity7.00
▷ Maximum class complexity41.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.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
4 PNG files occupy 0.27MB with 0.19MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png34.87KB8.37KB▼ 75.99%
screenshot-2.png104.88KB31.13KB▼ 70.32%
screenshot-1.png82.67KB23.41KB▼ 71.69%
screenshot-3.png52.32KB15.25KB▼ 70.86%