84% makeinfluence

Code Review | Make Influence

WordPress plugin Make Influence scored84%from 54 tests.

About plugin

  • Plugin page: makeinfluence
  • Plugin version: 2.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 8, 2022
  • Latest release: Nov 27, 2023
  • Number of updates: 14
  • Update frequency: every 38.4 days
  • Top authors: patrickthagaard (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,820 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.25ms] Passed 4 tests

An overview of server-side resources used by Make Influence
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1139.04 ▼1.76
Dashboard /wp-admin3.40 ▲0.1047.34 ▼2.58
Posts /wp-admin/edit.php3.52 ▲0.1648.69 ▲3.08
Add New Post /wp-admin/post-new.php5.98 ▲0.1091.25 ▼3.72
Media Library /wp-admin/upload.php3.32 ▲0.1036.61 ▲4.65

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Make Influence
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲5514.15 ▼0.561.69 ▼0.3037.60 ▼7.40
Dashboard /wp-admin2,229 ▲515.58 ▼0.1698.23 ▼10.3782.09 ▲41.24
Posts /wp-admin/edit.php2,137 ▲371.98 ▲0.0340.32 ▲2.6339.43 ▲0.92
Add New Post /wp-admin/post-new.php1,566 ▲3923.42 ▲0.47689.06 ▲39.9248.07 ▼8.98
Media Library /wp-admin/upload.php1,440 ▲374.21 ▼0.0095.39 ▼1.6074.42 ▲32.66

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-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/makeinfluence/partials/admin-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Thagaard\\MakeInfluence\\__() in wp-content/plugins/makeinfluence/plugin.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: makeinfluence, woocommerce

makeinfluence/makeinfluence.php Passed 13 tests

The main PHP script in "Make Influence" version 2.0.7 is automatically included on every request by WordPress
56 characters long description:
Integrate your Make Influence tracking with WooCommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin431 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36811364
PO File1222567

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods1285.71%
▷ Protected methods00.00%
▷ Private methods214.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
partials/MIlogo.png18.68KB4.64KB▼ 75.16%
icon.png1.89KB0.23KB▼ 87.96%