83% aspexi-facebook-like-box-sidebox

Code Review | Aspexi Social Media Sidebox

WordPress plugin Aspexi Social Media Sidebox scored 83% from 54 tests.

About plugin

  • Plugin page: aspexi-facebook-l...
  • Plugin version: 2.1.17
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 4, 2014
  • Latest release: Jun 9, 2022
  • Number of updates: 43
  • Update frequency: every 66.7 days
  • Top authors: aspexi (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active / 31,366 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.11ms] Passed 4 tests

This is a short check of server-side resources used by Aspexi Social Media Sidebox
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.97 ▼5.42
Dashboard /wp-admin3.32 ▲0.0246.68 ▼3.22
Posts /wp-admin/edit.php3.44 ▲0.0849.03 ▲1.97
Add New Post /wp-admin/post-new.php5.92 ▲0.0486.56 ▼1.75
Media Library /wp-admin/upload.php3.25 ▲0.0238.40 ▲3.17

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
aspexifbsidebox_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Aspexi Social Media Sidebox
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲20413.79 ▼0.585.70 ▲3.9941.04 ▼11.40
Dashboard /wp-admin2,236 ▲514.84 ▼0.15106.79 ▼1.3739.09 ▼6.33
Posts /wp-admin/edit.php2,119 ▲302.05 ▲0.0339.23 ▲0.7837.03 ▲2.45
Add New Post /wp-admin/post-new.php1,613 ▲7922.53 ▼0.57671.49 ▲2.2350.46 ▼10.93
Media Library /wp-admin/upload.php1,421 ▲334.24 ▲0.0495.03 ▼11.0041.94 ▼2.15
Aspexi Social Media Sidebox /wp-admin/aspexi-facebook-side-box.php260.440.0715.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/aspexi-facebook-side-box.php
    • > Network (severe)
    wp-admin/aspexi-facebook-side-box.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% 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:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
The official readme.txt might help

aspexi-facebook-like-box-sidebox/aspexi-facebook-side-box.php 85% from 13 tests

The principal PHP file in "Aspexi Social Media Sidebox" v. 2.1.17 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("aspexi-facebook-like-box-sidebox.php" instead of "aspexi-facebook-side-box.php")
  • 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,100 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP210843777
PO File1119194230
JavaScript28193

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods14.35%
▷ Public methods2191.30%
▷ Protected methods00.00%
▷ Private methods28.70%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
4 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/be250.png7.19KB3.89KB▼ 45.91%
images/svgonoff.png9.20KB3.74KB▼ 59.37%
images/aspexi300.png26.93KB11.76KB▼ 56.33%
images/fb1-right.png2.94KB2.78KB▼ 5.51%