94% ss-feefo-integration

Code Review | SS Feefo Integration

WordPress plugin SS Feefo Integration scored 94% from 54 tests.

About plugin

  • Plugin page: ss-feefo-integration
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 5.8.1
  • First release: Dec 31, 2015
  • Latest release: Dec 31, 2015
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: virendrasi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 549 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼140.97ms] Passed 4 tests

This is a short check of server-side resources used by SS Feefo Integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.0834.10 ▼1.95
Dashboard /wp-admin3.14 ▲0.0951.52 ▼5.34
Posts /wp-admin/edit.php3.19 ▲0.0945.38 ▲0.96
Add New Post /wp-admin/post-new.php5.50 ▲0.0795.27 ▼557.56
Media Library /wp-admin/upload.php3.08 ▲0.0834.29 ▲1.44

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for SS Feefo Integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,699 ▲10315.91 ▲0.2511.28 ▲1.5544.49 ▼3.21
Dashboard /wp-admin2,984 ▲505.92 ▼0.03194.82 ▲25.68106.89 ▼0.62
Posts /wp-admin/edit.php2,759 ▲202.71 ▼0.0162.74 ▼15.2082.54 ▼11.09
Add New Post /wp-admin/post-new.php1,696 ▲1318.78 ▲0.17402.96 ▼9.04104.83 ▼3.13
Media Library /wp-admin/upload.php1,827 ▲205.05 ▲0.02156.39 ▼32.18115.90 ▲3.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ss-feefo-integration/feefo-sales.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ss-feefo-integration/feefo-products.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ss-feefo-integration/feefo.php:176

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid url: ""
You can look at the official readme.txt

ss-feefo-integration/feefo.php 92% from 13 tests

Analyzing the main PHP file in "SS Feefo Integration" version 1.0
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ss-feefo-integration.php" instead of "feefo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin441 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP37830419
JavaScript14021
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity20.33
▷ Minimum class complexity12.00
▷ Maximum class complexity36.00
Average method complexity5.14
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin