78% awesome-wp-responsive-slider

Code Review | Awesome responsive slider

WordPress plugin Awesome responsive slider scored78%from 54 tests.

About plugin

  • Plugin page: awesome-wp-respon...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Sep 6, 2016
  • Latest release: Jan 7, 2022
  • Number of updates: 21
  • Update frequency: every 92.9 days
  • Top authors: nayon46 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,130 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Awesome responsive slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.00 ▼0.37
Dashboard /wp-admin3.34 ▲0.0353.08 ▲0.36
Posts /wp-admin/edit.php3.39 ▲0.0350.53 ▲1.75
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.11 ▼7.58
Media Library /wp-admin/upload.php3.26 ▲0.0339.41 ▲2.08
Slider /wp-admin/edit.php?post_type=slider-area3.3039.06
Add New /wp-admin/post-new.php?post_type=slider-area3.3149.96

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Awesome responsive slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲16913.60 ▼0.705.78 ▲4.0943.53 ▼5.64
Dashboard /wp-admin2,230 ▲395.77 ▼0.13122.07 ▲17.4647.63 ▲0.33
Posts /wp-admin/edit.php2,122 ▲302.03 ▲0.0439.49 ▼0.1232.57 ▼8.45
Add New Post /wp-admin/post-new.php1,537 ▲417.43 ▼5.95658.70 ▼3.4992.23 ▲32.91
Media Library /wp-admin/upload.php1,418 ▲334.23 ▼0.02106.70 ▲0.0145.89 ▲1.78
Slider /wp-admin/edit.php?post_type=slider-area1,0831.9640.9932.19
Add New /wp-admin/post-new.php?post_type=slider-area1,6233.5272.3738.57

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=slider-area
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
    Undefined offset: 0
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=slider-area
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
    Trying to get property 'guid' of non-object
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=slider-area
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
    Trying to get property 'ID' of non-object
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=slider-area
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
    Trying to get property 'post_title' of non-object

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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-wp-responsive-slider/awesome-wp-responsive-slider.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === awesome-wp-responsive-slider === )
The official readme.txt might help

awesome-wp-responsive-slider/awesome-wp-responsive-slider.php Passed 13 tests

The main PHP script in "Awesome responsive slider" version 1.0 is automatically included on every request by WordPress
30 characters long description:
easy and very collerful plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin54 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP145842
JavaScript22611
CSS1361

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/controls.png2.74KB1.42KB▼ 48.29%