74% advanced-post-slider

Code Review | Advanced post slider

WordPress plugin Advanced post slider scored74%from 54 tests.

About plugin

  • Plugin page: advanced-post-slider
  • Plugin version: 3.0.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.1
  • WordPress version: 6.3.1
  • First release: Oct 20, 2013
  • Latest release: Jul 22, 2022
  • Number of updates: 71
  • Update frequency: every 45.1 days
  • Top authors: digontoahsan (100%)

Code review

54 tests

User reviews

94 reviews

Install metrics

6,000+ active /234,258 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.19MB] [CPU: ▲0.29ms] Passed 4 tests

Server-side resources used by Advanced post slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2138.59 ▼2.65
Dashboard /wp-admin3.49 ▲0.1947.61 ▲1.80
Posts /wp-admin/edit.php3.61 ▲0.2548.19 ▲2.60
Add New Post /wp-admin/post-new.php6.07 ▲0.1992.60 ▲11.61
Media Library /wp-admin/upload.php3.42 ▲0.1935.63 ▼0.58

Server storage [IO: ▲0.29MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: 2 new tables, 12 new options
New tables
wp_advps_thumbnail
wp_advps_optionset
New WordPress options
advpssmethod3
advps-curr-version
advpssmethod1
advpssmethod2
db_upgraded
widget_theysaidso_widget
advps-update-notification
advps-db-version
widget_recent-posts
can_compress_scripts
...

Browser metrics Passed 4 tests

Checking browser requirements for Advanced post slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲19113.59 ▼0.799.82 ▲7.8241.38 ▼6.31
Dashboard /wp-admin2,225 ▲334.86 ▼0.06107.36 ▼4.8641.73 ▼9.23
Posts /wp-admin/edit.php2,105 ▲162.00 ▲0.0138.58 ▲1.3534.91 ▲2.42
Add New Post /wp-admin/post-new.php1,561 ▲1918.30 ▲0.09613.90 ▼17.6953.68 ▲4.73
Media Library /wp-admin/upload.php1,401 ▲104.20 ▲0.0095.50 ▼4.7640.83 ▼2.39

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie tables detected upon uninstall: 2 tables
    • wp_advps_thumbnail
    • wp_advps_optionset
  • Zombie WordPress options detected upon uninstall: 12 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • advps-curr-version
    • db_upgraded
    • advps-update-notification
    • advps-db-version
    • advpssmethod1
    • advpssmethod2
    • can_compress_scripts
    • ...

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-post-slider/advanced-post-slider.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

advanced-post-slider/advanced-post-slider.php 92% from 13 tests

This is the main PHP file of "Advanced post slider" version 3.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)

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
Everything looks great! No dangerous files found in this plugin4,001 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP71361103,204
JavaScript54396410
CSS26641387

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods360.00%
▷ Protected methods00.00%
▷ Private methods240.00%
Functions18
▷ Named functions18100.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
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/upb.png0.96KB0.11KB▼ 88.15%
images/down.png2.77KB0.11KB▼ 95.95%
images/up.png2.79KB0.11KB▼ 95.94%
images/downb.png0.15KB0.11KB▼ 24.84%
images/controls.png2.74KB1.42KB▼ 48.29%