83% affiliates-image-slider-widget

Code Review | Affiliates Image Slider Widget

WordPress plugin Affiliates Image Slider Widget scored 83% from 54 tests.

About plugin

  • Plugin page: affiliates-image-...
  • Plugin version: V1.9.2.0.001...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Nov 30, 2017
  • Latest release: Dec 9, 2017
  • Number of updates: 15
  • Update frequency: every 0.7 days
  • Top authors: aronno1920 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active / 1,578 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 gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.68ms] Passed 4 tests

This is a short check of server-side resources used by Affiliates Image Slider Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.67 ▼1.43
Dashboard /wp-admin3.39 ▲0.0845.15 ▼0.11
Posts /wp-admin/edit.php3.44 ▲0.0847.22 ▲0.95
Add New Post /wp-admin/post-new.php5.97 ▲0.0883.39 ▼10.12
Media Library /wp-admin/upload.php3.31 ▲0.0836.59 ▲3.44

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_affiliates-image-slider-widget-id
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Affiliates Image Slider Widget: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,005 ▲27013.78 ▼0.6011.19 ▲9.5050.38 ▲6.49
Dashboard /wp-admin2,205 ▲174.83 ▼1.0697.74 ▼1.9138.89 ▼9.44
Posts /wp-admin/edit.php2,091 ▲22.03 ▲0.0439.86 ▲4.6335.57 ▲0.09
Add New Post /wp-admin/post-new.php1,530 ▼323.27 ▲0.03664.91 ▼14.8753.08 ▼0.43
Media Library /wp-admin/upload.php1,390 ▲24.21 ▼0.01104.82 ▲3.2646.02 ▲0.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_affiliates-image-slider-widget-id
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/affiliates-image-slider-widget/affiliates-image-slider-widget.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Contributors: The plugin contributors field is not present
The official readme.txt might help

affiliates-image-slider-widget/affiliates-image-slider-widget.php 85% from 13 tests

The main file in "Affiliates Image Slider Widget" v. V1.9.2.0.001... serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "V1.9.2.0.001...")
  • Description: Keep the plugin description shorter than 140 characters (currently 228 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected636 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP13064394
CSS33822238
JavaScript20254

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity56.00
▷ Minimum class complexity56.00
▷ Maximum class complexity56.00
Average method complexity14.75
▷ Minimum method complexity1.00
▷ Maximum method complexity32.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%
Functions3
▷ Named functions3100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/next.png1.32KB1.58KB0.00%
assets/img/close.png0.27KB0.29KB0.00%
assets/img/prev.png1.33KB1.59KB0.00%