Benchmarks
Plugin footprint Passed 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.65MB] [CPU: ▼139.16ms] Passed 4 tests
An overview of server-side resources used by General Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.18 ▲0.46 | 34.65 ▲13.40 |
Dashboard /wp-admin | 3.77 ▲0.72 | 53.13 ▲9.14 |
Posts /wp-admin/edit.php | 3.86 ▲0.75 | 39.93 ▲1.73 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.69 | 92.35 ▼569.67 |
Media Library /wp-admin/upload.php | 3.71 ▲0.71 | 35.52 ▲2.15 |
Create New Slider /wp-admin/post-new.php?post_type=slider | 4.21 | 54.01 |
View Sliders /wp-admin/edit.php?post_type=slider | 3.76 | 35.26 |
Server storage [IO: ▲4.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 381 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for General Slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,884 ▲288 | 16.86 ▲1.34 | 15.90 ▲6.43 | 57.65 ▲9.99 |
Dashboard /wp-admin | 3,021 ▲87 | 6.16 ▲0.19 | 136.35 ▼12.54 | 113.13 ▼0.24 |
Posts /wp-admin/edit.php | 2,787 ▲48 | 2.74 ▲0.02 | 64.61 ▲2.38 | 93.37 ▲2.29 |
Add New Post /wp-admin/post-new.php | 1,651 ▼25 | 22.54 ▲3.69 | 263.88 ▼108.04 | 107.91 ▼1.50 |
Media Library /wp-admin/upload.php | 1,852 ▲42 | 5.09 ▲0.05 | 144.73 ▼10.10 | 112.12 ▼10.33 |
Create New Slider /wp-admin/post-new.php?post_type=slider | 2,662 | 4.61 | 99.94 | 118.84 |
View Sliders /wp-admin/edit.php?post_type=slider | 1,456 | 2.65 | 61.96 | 73.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
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 | 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
- 44× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/general-slider/inc/CMB2/includes/types/CMB2_Type_Picker_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/general-slider/inc/CMB2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/general-slider/inc/CMB2/includes/types/CMB2_Type_Multi_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/general-slider/inc/CMB2/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/general-slider/inc/CMB2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/general-slider/inc/CMB2/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/general-slider/inc/CMB2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/general-slider/inc/function.php:31
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/general-slider/inc/CMB2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/general-slider/inc/CMB2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: image slider, slider, general slider, wordpress slider, responsive slider
general-slider/general-slider.php 92% from 13 tests
The main PHP script in "General Slider" version 1.0.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.9" instead of "5.1")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected52,225 lines of code in 229 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 64 | 2,292 | 6,499 | 7,551 |
CSS | 17 | 290 | 1,211 | 4,803 |
JavaScript | 10 | 851 | 1,556 | 3,470 |
SVG | 1 | 0 | 0 | 2,671 |
Sass | 17 | 305 | 29 | 1,407 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 18.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 70 | |
▷ Abstract classes | 9 | 12.86% |
▷ Concrete classes | 61 | 87.14% |
▷ Final classes | 1 | 1.64% |
Methods | 544 | |
▷ Static methods | 89 | 16.36% |
▷ Public methods | 452 | 83.09% |
▷ Protected methods | 89 | 16.36% |
▷ Private methods | 3 | 0.55% |
Functions | 42 | |
▷ Named functions | 42 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 3 | 27.27% |
▷ Class constants | 8 | 72.73% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/CMB2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
inc/CMB2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
inc/CMB2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
inc/CMB2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
inc/CMB2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |