84% side-by-side

Code Review | Side by Side

WordPress plugin Side by Side scored84%from 54 tests.

About plugin

  • Plugin page: side-by-side
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.2-4.8.3
  • WordPress version: 6.3.1
  • First release: Nov 27, 2015
  • Latest release: Nov 15, 2017
  • Number of updates: 14
  • Update frequency: every 51.4 days
  • Top authors: damiarita (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /2,090 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Side by Side
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.95 ▼2.60
Dashboard /wp-admin3.31 ▲0.0154.42 ▲3.59
Posts /wp-admin/edit.php3.36 ▲0.0147.96 ▼5.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.81 ▼24.68
Media Library /wp-admin/upload.php3.24 ▲0.0137.91 ▲2.78

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Side by Side
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.45 ▼0.909.85 ▲7.8744.47 ▲5.42
Dashboard /wp-admin2,195 ▲215.61 ▼0.1285.58 ▼13.0540.48 ▼7.02
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0434.66 ▼0.9235.83 ▼3.91
Add New Post /wp-admin/post-new.php1,539 ▲1123.29 ▲0.06692.91 ▲5.7750.62 ▼3.42
Media Library /wp-admin/upload.php1,400 ▼04.27 ▲0.1996.69 ▼12.1745.83 ▼1.92

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/side-by-side/functions.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: css, shortcode, before-now, responsive, jquery...

side-by-side/functions.php 85% from 13 tests

Analyzing the main PHP file in "Side by Side" version 1.0.2
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 454 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("side-by-side.php" instead of "functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin88 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP114833
CSS13031
JavaScript210024

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions4
▷ Named functions4100.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
There are no PNG files in this plugin