84% free-slider

Code Review | Free Slider

WordPress plugin Free Slider scored84%from 54 tests.

About plugin

  • Plugin page: free-slider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.6
  • WordPress version: 6.3.1
  • First release: Sep 28, 2016
  • Latest release: Sep 26, 2016
  • Number of updates: 4
  • Update frequency: every 27.8 days
  • Top authors: seosbg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,883 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.73ms] Passed 4 tests

Analyzing server-side resources used by Free Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.49 ▲2.55
Dashboard /wp-admin3.39 ▲0.0950.19 ▼0.94
Posts /wp-admin/edit.php3.51 ▲0.1553.68 ▲2.80
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.17 ▼11.83
Media Library /wp-admin/upload.php3.30 ▲0.0737.41 ▼0.69

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Free Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,953 ▲19214.43 ▲0.072.82 ▲1.2142.97 ▼1.95
Dashboard /wp-admin2,354 ▲1776.13 ▲0.56108.01 ▲18.3786.68 ▲45.76
Posts /wp-admin/edit.php2,279 ▲1763.36 ▲1.3849.32 ▲12.3769.35 ▲31.60
Add New Post /wp-admin/post-new.php1,546 ▲1922.91 ▲0.02652.20 ▼28.9838.45 ▼13.65
Media Library /wp-admin/upload.php1,413 ▲104.09 ▼0.0986.89 ▼13.7472.35 ▲26.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
The following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/free-slider/inc/include-slider.php:98
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-slider/free-slider.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (Admin Panel view of submitted form data.)
You can take inspiration from this readme.txt

free-slider/free-slider.php Passed 13 tests

"Free Slider" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
53 characters long description:
Free Slider WordPress plugin add slider in your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin2,626 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS42662,001
SVG100288
PHP24915240
PO File1172157
JavaScript210540

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.24MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png11.25KB4.39KB▼ 60.99%
screenshot-1.png201.23KB52.74KB▼ 73.79%
images/find-img.png28.58KB10.85KB▼ 62.03%
images/remove.png1.80KB1.48KB▼ 17.60%
images/icon.png1.58KB1.43KB▼ 9.69%