83% wpbatch-awesome-slider

Code Review | WPBatch Awesome Slider

WordPress plugin WPBatch Awesome Slider scored83%from 54 tests.

About plugin

  • Plugin page: wpbatch-awesome-s...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Oct 6, 2014
  • Latest release: Oct 6, 2014
  • Number of updates: 6
  • Update frequency: every 1.2 days
  • Top authors: sujon3g (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10+ active /1,151 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by WPBatch Awesome Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.82 ▼2.74
Dashboard /wp-admin3.34 ▲0.0352.45 ▼0.24
Posts /wp-admin/edit.php3.39 ▲0.0346.51 ▼0.13
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.57 ▼15.68
Media Library /wp-admin/upload.php3.26 ▲0.0333.59 ▼3.56
Add New /wp-admin/post-new.php?post_type=wpbatch_slider3.3847.10
All Sliders /wp-admin/edit.php?post_type=wpbatch_slider3.3038.54

Server storage [IO: ▲0.03MB] [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: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPBatch Awesome Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲14613.47 ▼0.889.36 ▲7.4842.27 ▼2.45
Dashboard /wp-admin2,225 ▲455.65 ▼0.0188.24 ▼7.2139.66 ▼1.74
Posts /wp-admin/edit.php2,124 ▲242.03 ▲0.0334.58 ▼5.4939.55 ▲2.25
Add New Post /wp-admin/post-new.php1,549 ▲2323.83 ▲0.30677.77 ▲13.1658.20 ▲3.08
Media Library /wp-admin/upload.php1,427 ▲244.19 ▲0.01101.79 ▼6.0544.54 ▼2.44
Add New /wp-admin/post-new.php?post_type=wpbatch_slider2,1807.60185.9763.83
All Sliders /wp-admin/edit.php?post_type=wpbatch_slider1,1001.9735.5030.55

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpbatch-awesome-slider/index.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wpbatch-awesome-slider === )
  • Contributors: Plugin contributors not specified
The official readme.txt is a good inspiration

wpbatch-awesome-slider/index.php 92% from 13 tests

Analyzing the main PHP file in "WPBatch Awesome Slider" version 1.0
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wpbatch-awesome-slider.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected87 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP16876
CSS1087
JavaScript2084

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin