84% sumtracker-connector

Code Review | Sumtracker Connector

WordPress plugin Sumtracker Connector scored84%from 54 tests.

About plugin

  • Plugin page: sumtracker-connector
  • Plugin version: 2022.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Mar 12, 2022
  • Latest release: Mar 12, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: kushgoyal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /178 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.55ms] Passed 4 tests

Analyzing server-side resources used by Sumtracker Connector
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.78 ▼1.43
Dashboard /wp-admin3.32 ▼0.0244.86 ▼15.69
Posts /wp-admin/edit.php3.37 ▲0.0249.42 ▲3.06
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.07 ▼7.21
Media Library /wp-admin/upload.php3.24 ▲0.0236.32 ▲2.15

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Sumtracker Connector
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.07 ▼0.551.75 ▲0.1939.16 ▼0.21
Dashboard /wp-admin2,208 ▲345.50 ▼0.0984.41 ▼4.1141.38 ▲1.24
Posts /wp-admin/edit.php2,113 ▲132.02 ▲0.0141.12 ▲6.0835.91 ▼0.55
Add New Post /wp-admin/post-new.php1,539 ▲2222.95 ▲3.96617.95 ▲135.0044.53 ▼7.89
Media Library /wp-admin/upload.php1,419 ▲224.19 ▲0.0596.88 ▼5.3041.44 ▲1.01

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sumtracker-connector/sumtracker-connector.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: connector, sumtracker

sumtracker-connector/sumtracker-connector.php Passed 13 tests

The principal PHP file in "Sumtracker Connector" v. 2022.1 is loaded by WordPress automatically on each request
87 characters long description:
Plugin to connect your woo commerce store with sumtracker inventory management software

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected83 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP114983

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
sumtracker_logo.png27.50KB13.46KB▼ 51.05%
accept.png16.86KB6.35KB▼ 62.31%