99% ad-sliding-faq

Code Review | AD Sliding FAQ

WordPress plugin AD Sliding FAQ scored 99% from 54 tests.

About plugin

  • Plugin page: ad-sliding-faq
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 5.8.1
  • First release: Jun 30, 2017
  • Latest release: Apr 22, 2020
  • Number of updates: 37
  • Update frequency: every 27.8 days
  • Top authors: anybodesign (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 1,391 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼138.99ms] Passed 4 tests

This is a short check of server-side resources used by AD Sliding FAQ
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0627.33 ▼4.56
Dashboard /wp-admin3.12 ▲0.0654.59 ▲11.07
Posts /wp-admin/edit.php3.17 ▲0.0646.94 ▲1.27
Add New Post /wp-admin/post-new.php5.64 ▲0.2094.45 ▼552.23
Media Library /wp-admin/upload.php3.06 ▲0.0632.34 ▼0.44

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by AD Sliding FAQ
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,749 ▲15316.02 ▲0.1312.98 ▲4.9349.56 ▲5.88
Dashboard /wp-admin3,010 ▲796.11 ▼0.01141.04 ▼33.97108.60 ▲0.92
Posts /wp-admin/edit.php2,779 ▲402.73 ▲0.0263.76 ▼5.4687.45 ▲2.14
Add New Post /wp-admin/post-new.php1,526 ▼14418.58 ▼0.56491.09 ▲79.32108.38 ▲3.36
Media Library /wp-admin/upload.php1,847 ▲405.10 ▲0.08155.63 ▲2.28116.32 ▲2.48

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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 issues were found

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
6 plugin tags: accordion, faq plugin, wordpress faq, frequently asked questions, faqs...

ad-sliding-faq/any-sliding-faq.php 85% from 13 tests

The principal PHP file in "AD Sliding FAQ" v. 2.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages/")
  • Main file name: The principal plugin file should be the same as the plugin slug ("ad-sliding-faq.php" instead of "any-sliding-faq.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin313 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP212068245
CSS111654
JavaScript114514

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin