84% aspexi-facebook-like-box

Code Review | Aspexi Social Media Slider

WordPress plugin Aspexi Social Media Slider scored84%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: Apr 14, 2014
  • Latest release: Jun 8, 2022
  • Number of updates: 64
  • Update frequency: every 46.5 days
  • Top authors: aspexi (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

3,000+ active /69,998 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Server-side resources used by Aspexi Social Media Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0348.94 ▲10.56
Dashboard /wp-admin3.32 ▲0.0246.22 ▲1.39
Posts /wp-admin/edit.php3.44 ▲0.0843.77 ▼0.55
Add New Post /wp-admin/post-new.php5.92 ▲0.0481.60 ▼13.90
Media Library /wp-admin/upload.php3.25 ▲0.0238.31 ▲3.54

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
aspexifblikebox_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Aspexi Social Media Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,939 ▲19313.58 ▼0.859.72 ▲8.0043.98 ▼2.64
Dashboard /wp-admin2,230 ▲424.89 ▼1.08101.90 ▲2.4142.69 ▲7.28
Posts /wp-admin/edit.php2,119 ▲302.02 ▼0.0135.83 ▲0.6332.44 ▼0.63
Add New Post /wp-admin/post-new.php1,631 ▲11723.08 ▲5.23683.50 ▲49.5449.61 ▲0.67
Media Library /wp-admin/upload.php1,421 ▲364.29 ▲0.0598.38 ▼7.8044.19 ▼1.08
Aspexi Social Media Slider /wp-admin/aspexi-facebook-like-box.php260.440.1013.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt might help

aspexi-facebook-like-box/aspexi-facebook-like-box.php 92% from 13 tests

The entry point to "Aspexi Social Media Slider" version 2.1.17 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
There were no executable files found in this plugin1,080 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP211943811
PO File1120201231
JavaScript23038

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods14.17%
▷ Public methods2291.67%
▷ Protected methods00.00%
▷ Private methods28.33%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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/aspexi300.png26.93KB11.76KB▼ 56.33%
images/fb1-right.png2.94KB2.78KB▼ 5.51%
images/be250.png7.19KB3.89KB▼ 45.91%
images/svgonoff.png9.20KB3.74KB▼ 59.37%