83% wp-mycarousel

Code Review | WP MyCarousel

WordPress plugin WP MyCarousel scored83%from 54 tests.

About plugin

  • Plugin page: wp-mycarousel
  • Plugin version: 0.1-10 $...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7
  • WordPress version: 6.3.1
  • First release: Nov 7, 2015
  • Latest release: Dec 7, 2016
  • Number of updates: 11
  • Update frequency: every 36.2 days
  • Top authors: eugenmihailescu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,836 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.25MB] [CPU: ▼5.91ms] Passed 4 tests

A check of server-side resources used by WP MyCarousel
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2639.84 ▼0.94
Dashboard /wp-admin3.57 ▲0.2244.93 ▼17.23
Posts /wp-admin/edit.php3.68 ▲0.3248.11 ▼0.73
Add New Post /wp-admin/post-new.php6.15 ▲0.2692.20 ▼4.75
Media Library /wp-admin/upload.php3.49 ▲0.2638.22 ▲4.07

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP MyCarousel
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7014.68 ▼0.041.73 ▼0.1944.70 ▲4.78
Dashboard /wp-admin2,211 ▲305.64 ▼0.0492.23 ▼17.0337.22 ▼8.03
Posts /wp-admin/edit.php2,116 ▲162.02 ▲0.0540.13 ▼1.1534.64 ▼1.46
Add New Post /wp-admin/post-new.php1,539 ▲1323.31 ▼0.10654.85 ▲33.7659.74 ▲5.21
Media Library /wp-admin/upload.php1,419 ▲194.19 ▲0.0197.21 ▲0.4843.28 ▲1.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 13× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-mycarousel/include/mynix-class-list-table.php on line 39
    • > PHP Warning
      Use of undefined constant ASSETS_PATH - assumed 'ASSETS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-mycarousel/config.php on line 44
    • > PHP Warning
      Use of undefined constant INCLUDE_PATH - assumed 'INCLUDE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-mycarousel/include/autoloader.php on line 40
    • > PHP Warning
      Use of undefined constant ROOT_PATH - assumed 'ROOT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-mycarousel/include/autoloader.php on line 43
    • > PHP Warning
      Use of undefined constant ROOT_PATH - assumed 'ROOT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-mycarousel/config.php on line 41
    • > PHP Warning
      Use of undefined constant ROOT_PATH - assumed 'ROOT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-mycarousel/config.php on line 40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function MynixCarousel\\__() in wp-content/plugins/wp-mycarousel/include/mynix-welcome.php:39
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-mycarousel/include/mynix-class-list-table.php on line 39
    • > PHP Warning
      Use of undefined constant INCLUDE_PATH - assumed 'INCLUDE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-mycarousel/include/autoloader.php on line 42
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-mycarousel/include/mynix-class-list-table.php on line 39

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === wp-mycarousel === )
Please take inspiration from this readme.txt

wp-mycarousel/mynix-carousel.php 69% from 13 tests

The main file in "WP MyCarousel" v. 0.1-10 $... 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 "0.1-10 $...")
  • Description: The plugin description must be longer than 10 characters (currently 0 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/i18n/languages/")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-mycarousel.php" instead of "mynix-carousel.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,312 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP10193511,786
CSS4266362
JavaScript6133164

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity66.50
▷ Minimum class complexity38.00
▷ Maximum class complexity120.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods79
▷ Static methods00.00%
▷ Public methods7392.41%
▷ Protected methods00.00%
▷ Private methods67.59%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants9
▷ Global constants9100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/help.png0.30KB0.32KB0.00%