10% stocklist-integrator

Code Review | Stocklist Integrator

WordPress plugin Stocklist Integrator scored10%from 54 tests.

About plugin

  • Plugin page: stocklist-integrator
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 14, 2023
  • Latest release: Jul 24, 2023
  • Number of updates: 6
  • Update frequency: every 24.0 days
  • Top authors: mbroenland (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /289 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼1.89MB] [CPU: ▼57.28ms] Passed 4 tests

This is a short check of server-side resources used by Stocklist Integrator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.365.66 ▼37.75
Dashboard /wp-admin2.12 ▼1.195.69 ▼55.83
Posts /wp-admin/edit.php2.12 ▼1.245.36 ▼43.51
Add New Post /wp-admin/post-new.php2.12 ▼3.776.27 ▼92.02
Media Library /wp-admin/upload.php2.12 ▼1.115.19 ▼32.50
Stocklist Integrator /wp-admin/options-general.php?page=stocklist_integrator2.126.12

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Stocklist Integrator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.40 ▲0.101.72 ▼0.3445.96 ▼6.22
Dashboard /wp-admin2,210 ▲285.86 ▼0.0397.42 ▼9.1637.02 ▼5.16
Posts /wp-admin/edit.php2,096 ▲41.97 ▼0.1737.46 ▼0.5031.66 ▼2.18
Add New Post /wp-admin/post-new.php1,537 ▲1523.25 ▲0.10638.87 ▼37.5946.04 ▼5.17
Media Library /wp-admin/upload.php1,392 ▲134.23 ▲0.0192.73 ▼0.3741.33 ▲2.01
Stocklist Integrator /wp-admin/options-general.php?page=stocklist_integrator8652.0222.8738.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=stocklist_integrator
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=stocklist_integrator
    • > Notice in wp-content/plugins/stocklist-integrator/stocklist-integrator.php+225
    Trying to access array offset on value of type bool

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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: embed, stock

stocklist-integrator/stocklist-integrator.php Passed 13 tests

The principal PHP file in "Stocklist Integrator" v. 1.0.0 is loaded by WordPress automatically on each request
106 characters long description:
Add a stocklist to your website. Works with multiple providers (Autotelex, Hexon, RDC / InMotiv, UCC, VWE)

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 plugin304 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23634221
PO File1202283

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods1280.00%
▷ Protected methods16.67%
▷ Private methods213.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin