68% aslyder

Code Review | aSlyder Plugin for Wordpress

WordPress plugin aSlyder Plugin for Wordpress scored68%from 54 tests.

About plugin

  • Plugin page: aslyder
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Jun 12, 2013
  • Latest release: Nov 24, 2017
  • Number of updates: 10
  • Update frequency: every 162.6 days
  • Top authors: Avant 5 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,149 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼40.44ms] Passed 4 tests

A check of server-side resources used by aSlyder Plugin for Wordpress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0444.51 ▲1.24
Dashboard /wp-admin3.04 ▼0.2722.48 ▼34.65
Posts /wp-admin/edit.php3.04 ▼0.3223.47 ▼34.29
Add New Post /wp-admin/post-new.php3.04 ▼2.8526.45 ▼81.84
Media Library /wp-admin/upload.php3.04 ▼0.1925.15 ▼10.99

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
aslyder_options
widget_recent-comments

Browser metrics Passed 4 tests

aSlyder Plugin for Wordpress: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲12413.39 ▼1.0212.23 ▲10.2342.67 ▼0.60
Dashboard /wp-admin2,208 ▲315.55 ▲0.0282.67 ▼18.2838.50 ▼4.01
Posts /wp-admin/edit.php2,119 ▲161.96 ▼0.0542.28 ▲6.4336.35 ▲0.63
Add New Post /wp-admin/post-new.php1,539 ▲1123.20 ▼0.02688.92 ▲28.2861.07 ▼1.18
Media Library /wp-admin/upload.php1,416 ▲164.24 ▼0.01101.80 ▼5.3745.08 ▲3.96

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/aslyder/aslyder.php+317
    Undefined variable: icon
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • aslyder_options
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/aslyder/aslyder-help.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/aslyder/aslyder.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
8 plugin tags: aslyder, css, javascript, carousel, slider...

aslyder/aslyder.php Passed 13 tests

"aSlyder Plugin for Wordpress" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
78 characters long description:
WP Interface plugin for making use of the aSlyder slideshow engine for jQuery.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected306 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP39032305
JavaScript1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions9
▷ Named functions9100.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
No PNG images were found in this plugin