84% salesfeed

Code Review | SalesFeed

WordPress plugin SalesFeed scored84%from 54 tests.

About plugin

  • Plugin page: salesfeed
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Nov 18, 2013
  • Latest release: Mar 18, 2020
  • Number of updates: 12
  • Update frequency: every 194.3 days
  • Top authors: pronamic (58.33%)remcotolsma (50%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,498 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.14ms] Passed 4 tests

Server-side resources used by SalesFeed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.62 ▼5.85
Dashboard /wp-admin3.33 ▼0.0251.54 ▼10.91
Posts /wp-admin/edit.php3.38 ▲0.0249.58 ▼1.72
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.71 ▼18.07
Media Library /wp-admin/upload.php3.25 ▲0.0240.97 ▲5.02
SalesFeed /wp-admin/options-general.php?page=salesfeed3.2232.10

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 114 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for SalesFeed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.23 ▼0.121.66 ▼0.1839.48 ▼8.13
Dashboard /wp-admin2,202 ▲255.63 ▼0.1394.08 ▲2.7537.65 ▼1.18
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0239.66 ▲0.6835.42 ▲1.39
Add New Post /wp-admin/post-new.php1,529 ▼823.42 ▲5.50677.01 ▲25.9356.63 ▼15.51
Media Library /wp-admin/upload.php1,407 ▲74.16 ▲0.02105.47 ▼3.4149.67 ▲4.25
SalesFeed /wp-admin/options-general.php?page=salesfeed7902.0225.8626.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
  • 97× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Composer\\Plugin\\PluginInterface' not found in wp-content/plugins/salesfeed/vendor/composer/installers/src/Composer/Installers/Plugin.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/salesfeed/vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/salesfeed/vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/salesfeed/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/salesfeed/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/salesfeed/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/salesfeed/vendor/composer/installers/src/Composer/Installers/CiviCrmInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/salesfeed/vendor/composer/installers/src/Composer/Installers/SyliusInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/salesfeed/vendor/composer/installers/src/Composer/Installers/GravInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/salesfeed/vendor/composer/installers/src/Composer/Installers/PPIInstaller.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: salesfeed, feed, analytics, sales, tracking...

salesfeed/salesfeed.php Passed 13 tests

"SalesFeed" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
83 characters long description:
Add a SalesFeed tracking code to your WordPress site. You need a SalesFeed account.

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 plugin2,672 lines of code in 110 files:
LanguageFilesBlank linesComment linesLines of code
PHP1074266242,456
JSON200183
PO File17933

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity2.45
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes100
▷ Abstract classes11.00%
▷ Concrete classes9999.00%
▷ Final classes00.00%
Methods114
▷ Static methods32.63%
▷ Public methods7767.54%
▷ Protected methods3127.19%
▷ Private methods65.26%
Functions8
▷ Named functions225.00%
▷ Anonymous functions675.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected