84% sb-connector

Code Review | Speed Blogging Integration

WordPress plugin Speed Blogging Integration scored84%from 54 tests.

About plugin

  • Plugin page: sb-connector
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.3.1
  • WordPress version: 6.3.1
  • First release: Aug 13, 2015
  • Latest release: Oct 1, 2015
  • Number of updates: 12
  • Update frequency: every 4.2 days
  • Top authors: mikejudd (58.33%)toddnestor (50%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,779 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by Speed Blogging Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0150.20 ▲10.52
Dashboard /wp-admin3.31 ▲0.0146.39 ▼5.62
Posts /wp-admin/edit.php3.36 ▲0.0148.93 ▼1.08
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.48 ▼16.10
Media Library /wp-admin/upload.php3.24 ▲0.0138.66 ▼10.41

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
sbc_connector
widget_recent-comments
sbc_hash
widget_recent-posts

Browser metrics Passed 4 tests

Speed Blogging Integration: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3213.67 ▼0.504.59 ▲2.7744.07 ▼3.26
Dashboard /wp-admin2,227 ▲505.79 ▲0.11100.60 ▲7.2641.23 ▲1.02
Posts /wp-admin/edit.php2,132 ▲322.32 ▲0.3238.40 ▼2.8732.14 ▼4.58
Add New Post /wp-admin/post-new.php1,551 ▲623.22 ▲0.01626.97 ▼55.9056.36 ▼12.95
Media Library /wp-admin/upload.php1,426 ▲234.41 ▲0.15102.89 ▼2.0340.29 ▼15.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • sbc_connector
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • sbc_hash

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/sb-connector/api/api.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (SpeedBlogging Interface), #2 (Plugin Interface)
You can look at the official readme.txt

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

Analyzing the main PHP file in "Speed Blogging Integration" version 1.0.7
103 characters long description:
Speed Blogging Integration is a plugin that connects your blog with SpeedBlogging system and it enables

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin8,790 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS3176,931
JavaScript35762071,543
SVG100229
PHP3131387

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity68.00
▷ Minimum class complexity68.00
▷ Maximum class complexity68.00
Average method complexity4.94
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods211.76%
▷ Public methods1694.12%
▷ Protected methods15.88%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
2 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png27.47KB14.41KB▼ 47.52%
screenshot-1.png78.38KB24.13KB▼ 69.21%