73% andreadb-coin-slider

Code Review | Andreadb Coin Slider

WordPress plugin Andreadb Coin Slider scored 73% from 54 tests.

About plugin

  • Plugin page: andreadb-coin-slider
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.7
  • WordPress version: 6.3.1
  • First release: Nov 6, 2016
  • Latest release: Nov 11, 2016
  • Number of updates: 4
  • Update frequency: every 9.0 days
  • Top authors: andreadb91 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 934 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Andreadb Coin Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1836.49 ▼6.82
Dashboard /wp-admin3.55 ▲0.2547.74 ▼0.75
Posts /wp-admin/edit.php3.61 ▲0.2557.70 ▲6.04
Add New Post /wp-admin/post-new.php6.07 ▲0.1980.07 ▼18.27
Media Library /wp-admin/upload.php3.39 ▲0.1636.83 ▼4.65
Coin Slider /wp-admin/edit.php?post_type=dba_coin_slider3.4641.78
Donate /wp-admin/edit.php?post_type=dba_coin_slider&page=andreadb-coin-slider-donate3.3937.34
Add Coin Slider /wp-admin/post-new.php?post_type=dba_coin_slider3.4244.19

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_andreadb_coin_slider_widget
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Andreadb Coin Slider: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,090 ▲35515.41 ▲1.034.63 ▲2.9838.96 ▼0.56
Dashboard /wp-admin2,385 ▲1946.57 ▲0.67137.18 ▲24.6343.29 ▼3.94
Posts /wp-admin/edit.php2,291 ▲1993.34 ▲1.3050.75 ▲11.7933.21 ▼4.40
Add New Post /wp-admin/post-new.php1,564 ▲4423.25 ▲0.10644.16 ▲13.2835.43 ▼26.16
Media Library /wp-admin/upload.php1,430 ▲454.17 ▼0.0077.99 ▼25.8840.91 ▼4.42
Coin Slider /wp-admin/edit.php?post_type=dba_coin_slider1,2793.4150.8530.76
Donate /wp-admin/edit.php?post_type=dba_coin_slider&page=andreadb-coin-slider-donate9813.0237.9526.88
Add Coin Slider /wp-admin/post-new.php?post_type=dba_coin_slider1,9953.5964.3643.21

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_andreadb_coin_slider_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=dba_coin_slider
    • > Notice in wp-content/plugins/andreadb-coin-slider/admin/class-andreadb-coin-slider-admin.php+419
    Trying to access array offset on value of type null

SRP 0% 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× PHP files output text when accessed directly:
    • > /wp-content/plugins/andreadb-coin-slider/public/display/andreadb-coin-slider-public.php
  • 5× 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/andreadb-coin-slider/includes/class-andreadb-coin-slider-widget.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/andreadb-coin-slider/admin/display/andreadb-coin-slider-admin-settings.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/andreadb-coin-slider/admin/display/andreadb-coin-slider-admin-codes.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/andreadb-coin-slider/admin/display/andreadb-coin-slider-admin-donate.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_attachment_image() in wp-content/plugins/andreadb-coin-slider/admin/display/andreadb-coin-slider-admin-slides.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: wordpress slider, slideshow, coin slider, image slider, slider

andreadb-coin-slider/andreadb-coin-slider.php Passed 13 tests

"Andreadb Coin Slider" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
55 characters long description:
Create and manage beautiful SEO slideshow coin sliders.

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
Everything looks great! No dangerous files found in this plugin957 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP16191745728
CSS204155
JavaScript2112174

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity8.25
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods47
▷ Static methods36.38%
▷ Public methods4289.36%
▷ Protected methods00.00%
▷ Private methods510.64%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected