84% impact-partnership-cloud

Code Review | Impact: Partnership Cloud

WordPress plugin Impact: Partnership Cloud scored84%from 54 tests.

About plugin

  • Plugin page: impact-partnershi...
  • Plugin version: 1.0.24
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Apr 29, 2021
  • Latest release: Nov 22, 2023
  • Number of updates: 27
  • Update frequency: every 34.7 days
  • Top authors: impacttechpartners (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /4,607 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.62ms] Passed 4 tests

Analyzing server-side resources used by Impact: Partnership Cloud
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0838.75 ▼9.69
Dashboard /wp-admin3.39 ▲0.0446.97 ▼15.36
Posts /wp-admin/edit.php3.51 ▲0.1448.83 ▼1.13
Add New Post /wp-admin/post-new.php5.97 ▲0.0881.62 ▼4.28
Media Library /wp-admin/upload.php3.32 ▲0.0836.12 ▲3.76

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Impact: Partnership Cloud
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.35 ▲0.131.80 ▲0.0237.72 ▼5.18
Dashboard /wp-admin2,195 ▲205.62 ▼0.0097.33 ▼16.4342.89 ▼2.12
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0238.68 ▼1.4335.71 ▲5.57
Add New Post /wp-admin/post-new.php1,526 ▼323.30 ▲0.56675.11 ▲88.0650.13 ▲1.51
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0697.19 ▲1.2341.20 ▲0.55

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/impact-partnership-cloud/includes/no_woocommerce_access.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/impact-partnership-cloud/includes/impact_settings_page.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/impact-partnership-cloud/includes/utt-script.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/impact-partnership-cloud/includes/impact_delete_integration.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
Attributes that require attention:
  • Contributors: Plugin contributors field is missing
The official readme.txt is a good inspiration

impact-partnership-cloud/impact.php 92% from 13 tests

"Impact: Partnership Cloud" version 1.0.24's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("impact-partnership-cloud.php" instead of "impact.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,136 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP676243714
Sass5594323
JavaScript68172
CSS431027

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity50.00
▷ Minimum class complexity50.00
▷ Maximum class complexity50.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods35
▷ Static methods12.86%
▷ Public methods3394.29%
▷ Protected methods00.00%
▷ Private methods25.71%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
12 PNG files occupy 0.28MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/top-50.png3.39KB2.01KB▼ 40.78%
images/brands.png4.04KB2.38KB▼ 41.22%
images/walmart.png2.72KB2.69KB▼ 1.22%
images/microsoft.png3.42KB3.40KB0.46%
images/impact-logo.png2.20KB2.22KB0.00%