94% advanced-floating-sliding-panel

Code Review | Advanced Floating Sliding Panel

WordPress plugin Advanced Floating Sliding Panel scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-floating...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 5.9.2
  • First release: Oct 21, 2018
  • Latest release: Jan 24, 2022
  • Number of updates: 13
  • Update frequency: every 91.6 days
  • Top authors: codetides (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 2,788 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

A check of server-side resources used by Advanced Floating Sliding Panel
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0554.61 ▲2.15
Dashboard /wp-admin3.47 ▲0.0638.61 ▲5.35
Posts /wp-admin/edit.php3.70 ▲0.0640.10 ▲1.23
Add New Post /wp-admin/post-new.php6.94 ▼0.0393.79 ▼1,188.32
Media Library /wp-admin/upload.php3.36 ▲0.0625.57 ▲3.00
All Advanced Floating Sliding Panel /wp-admin/edit.php?post_type=ct_afsp3.4028.87
Add New /wp-admin/post-new.php?post_type=ct_afsp3.7844.36

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 55 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Floating Sliding Panel
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /8,713 ▲4,95917.91 ▲2.329.08 ▲2.502.39 ▲0.01
Dashboard /wp-admin7,695 ▲4,8376.88 ▲0.75171.46 ▲38.28153.65 ▼6.50
Posts /wp-admin/edit.php7,494 ▲4,8063.88 ▲0.64116.04 ▲51.76146.94 ▲1.70
Add New Post /wp-admin/post-new.php4,201 ▲2,54022.25 ▲6.15473.61 ▲52.11170.10 ▲16.13
Media Library /wp-admin/upload.php6,502 ▲4,8075.69 ▲0.19172.81 ▲17.75186.80 ▼11.03
All Advanced Floating Sliding Panel /wp-admin/edit.php?post_type=ct_afsp6,1893.82112.17140.77
Add New /wp-admin/post-new.php?post_type=ct_afsp11,12412.45343.44204.95

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _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 _e() in wp-content/plugins/advanced-floating-sliding-panel/admin/views/advanced-floating-sliding-panel-tabs-design-options.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-floating-sliding-panel/admin/views/advanced-floating-sliding-panel-basic-options.php:18

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === advanced-floating-sliding-panel === )
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt is a good inspiration

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

The principal PHP file in "Advanced Floating Sliding Panel" v. 1.0.0 is loaded by WordPress automatically on each request
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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected12,049 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
CSS7126605,327
JavaScript55704842,994
SVG1002,671
PHP142365871,057

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity8.14
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods47
▷ Static methods24.26%
▷ Public methods3880.85%
▷ Protected methods00.00%
▷ Private methods919.15%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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/assets/email-icon.png1.66KB1.24KB▼ 25.15%
admin/assets/faq-icon.png1.19KB1.04KB▼ 12.27%
admin/css/select2.png0.51KB0.99KB0.00%
admin/assets/doc-icon.png0.88KB0.67KB▼ 24.75%
admin/assets/group-icon.png1.57KB1.28KB▼ 18.92%