84% subsbase-integration

Code Review | SubsBase Integration

WordPress plugin SubsBase Integration scored 84% from 54 tests.

About plugin

  • Plugin page: subsbase-integration
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Mar 14, 2021
  • Latest release: Feb 22, 2022
  • Number of updates: 10
  • Update frequency: every 34.7 days
  • Top authors: subsbase (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 442 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
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼2.88ms] Passed 4 tests

A check of server-side resources used by SubsBase Integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.99 ▼1.87
Dashboard /wp-admin3.39 ▲0.0950.32 ▲0.87
Posts /wp-admin/edit.php3.44 ▲0.0945.82 ▼1.37
Add New Post /wp-admin/post-new.php5.97 ▲0.0985.20 ▼7.90
Media Library /wp-admin/upload.php3.32 ▲0.0934.07 ▼0.37
SubsBase Integration Settings /wp-admin/options-general.php?page=sbis_embed_settings3.6133.88

Server storage [IO: ▲0.13MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

SubsBase Integration: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.29 ▼0.891.79 ▼0.0245.12 ▲1.67
Dashboard /wp-admin2,213 ▲284.84 ▼0.03102.37 ▼8.7743.71 ▼3.48
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0336.02 ▼1.1332.64 ▼4.73
Add New Post /wp-admin/post-new.php1,536 ▲1223.26 ▲0.15645.21 ▼36.1959.40 ▲8.17
Media Library /wp-admin/upload.php1,392 ▲74.22 ▲0.0496.94 ▼0.2341.76 ▼0.14
SubsBase Integration Settings /wp-admin/options-general.php?page=sbis_embed_settings2,5172.8383.6025.82

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=sbis_embed_settings
    • > Notice in wp-content/plugins/subsbase-integration/settings-page.php+872
    Trying to access array offset on value of type bool

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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
These attributes need to be fixed:
  • Contributors: The plugin contributors field is not present
You can look at the official readme.txt

subsbase-integration/subsbase-integration.php 92% from 13 tests

This is the main PHP file of "SubsBase Integration" version 1.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,262 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP447161,093
JavaScript21946107
CSS112160
Markdown1002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code1.42
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin