84% sb-responseframe

Code Review | SB-ResponseFrame

WordPress plugin SB-ResponseFrame scored84%from 54 tests.

About plugin

  • Plugin page: sb-responseframe
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-3.7
  • WordPress version: 6.3.1
  • First release: Oct 31, 2013
  • Latest release: Nov 1, 2013
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: ladislav.soukup@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,340 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: ▼1.16ms] Passed 4 tests

An overview of server-side resources used by SB-ResponseFrame
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.07 ▼6.71
Dashboard /wp-admin3.32 ▲0.0146.06 ▼0.71
Posts /wp-admin/edit.php3.37 ▲0.0147.17 ▲1.55
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.71 ▲1.53
Media Library /wp-admin/upload.php3.24 ▲0.0133.66 ▲1.27

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

SB-ResponseFrame: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.30 ▼1.481.72 ▼0.1738.87 ▼9.42
Dashboard /wp-admin2,203 ▲155.89 ▲0.8696.90 ▼11.1138.76 ▼7.02
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0141.63 ▲1.8234.92 ▼2.42
Add New Post /wp-admin/post-new.php1,539 ▲323.01 ▼0.01643.54 ▲10.4254.11 ▲4.35
Media Library /wp-admin/upload.php1,382 ▼34.20 ▲0.0297.53 ▼1.4145.64 ▲3.46

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sb-responseframe/SB-ResponseFrame.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: responsive, iframe

sb-responseframe/SB-ResponseFrame.php 92% from 13 tests

Analyzing the main PHP file in "SB-ResponseFrame" version 1.0.0
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sb-responseframe.php" instead of "SB-ResponseFrame.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin57 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1304757

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.17
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG files were detected