84% advanced-floating-sliding-panel

Code Review | Advanced Floating Sliding Panel

WordPress plugin Advanced Floating Sliding Panel scored84%from 54 tests.

About plugin

  • Plugin page: advanced-floating...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 21, 2018
  • Latest release: May 3, 2023
  • Number of updates: 17
  • Update frequency: every 97.4 days
  • Top authors: codetides (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /3,920 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.19MB] [CPU: ▼8.91ms] Passed 4 tests

An overview of server-side resources used by Advanced Floating Sliding Panel
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2045.65 ▼1.96
Dashboard /wp-admin3.54 ▲0.1648.09 ▼20.32
Posts /wp-admin/edit.php3.66 ▲0.2647.61 ▼9.18
Add New Post /wp-admin/post-new.php6.15 ▲0.22100.85 ▼4.17
Media Library /wp-admin/upload.php3.47 ▲0.2041.81 ▲4.72
Add New /wp-admin/post-new.php?post_type=ct_afsp3.6654.49
All Advanced Floating Sliding Panel /wp-admin/edit.php?post_type=ct_afsp3.5141.03

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

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

Browser metrics Passed 4 tests

Advanced Floating Sliding Panel: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /7,687 ▲4,92614.91 ▲0.546.61 ▲4.9241.24 ▼3.42
Dashboard /wp-admin6,981 ▲4,8046.31 ▲0.73132.35 ▲48.3238.44 ▼5.16
Posts /wp-admin/edit.php6,888 ▲4,7882.64 ▲0.6783.72 ▲42.9432.50 ▼3.19
Add New Post /wp-admin/post-new.php6,462 ▲4,93623.67 ▲0.45692.85 ▲5.1029.52 ▼35.91
Media Library /wp-admin/upload.php6,186 ▲4,7834.19 ▲0.02139.38 ▲37.8347.03 ▲2.90
Add New /wp-admin/post-new.php?post_type=ct_afsp9,89211.27372.48104.97
All Advanced Floating Sliding Panel /wp-admin/edit.php?post_type=ct_afsp5,8632.5877.2628.93

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advanced-floating-sliding-panel/admin/views/advanced-floating-sliding-panel-advanced-options.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advanced-floating-sliding-panel/admin/views/advanced-floating-sliding-panel-basic-options.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advanced-floating-sliding-panel/admin/views/advanced-floating-sliding-panel-tabs-options.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advanced-floating-sliding-panel/admin/views/advanced-floating-sliding-panel-tabs-design-options.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === advanced-floating-sliding-panel === )
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

advanced-floating-sliding-panel/advanced-floating-sliding-panel.php Passed 13 tests

The main PHP file in "Advanced Floating Sliding Panel" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
131 characters long description:
Advanced Floating Sliding Panel (Lite) is the Best Plugin to create sliding panel with unlimited controllable tabs within a minute.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin12,258 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
CSS7126605,334
JavaScript65684952,991
SVG1002,671
PHP152545981,262

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity8.14
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods48
▷ Static methods24.17%
▷ Public methods3981.25%
▷ Protected methods00.00%
▷ Private methods918.75%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
9 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/css/select2.png0.51KB0.99KB0.00%
admin/assets/faq-icon.png1.19KB1.04KB▼ 12.27%
admin/assets/afsp-icon-hover.png1.77KB0.84KB▼ 52.45%
admin/assets/afsp-icon.png1.71KB0.75KB▼ 55.92%
admin/assets/group-icon.png1.57KB1.28KB▼ 18.92%