Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼152.43ms] Passed 4 tests
Analyzing server-side resources used by Accordion Slider Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.05 | 24.12 ▲0.87 |
Dashboard /wp-admin | 3.10 ▲0.04 | 30.59 ▼8.76 |
Posts /wp-admin/edit.php | 3.19 ▲0.08 | 29.12 ▼1.04 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.11 | 68.90 ▼600.77 |
Media Library /wp-admin/upload.php | 3.05 ▲0.04 | 23.45 ▲1.64 |
Galleries /wp-admin/edit.php?post_type=accordion_slider | 3.09 | 23.93 |
Add New /wp-admin/post-new.php?post_type=accordion_slider | 3.18 | 36.38 |
Server storage [IO: ▲3.83MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 108 new files
Database: no new tables, 4 new options
New WordPress options |
---|
rpg-slider-images-default |
accordion-slider-type |
accordion-slider-installDate |
accordion-slider-v |
Browser metrics Passed 4 tests
Checking browser requirements for Accordion Slider Gallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,824 ▲223 | 16.16 ▲0.11 | 8.17 ▲3.07 | 77.42 ▲1.36 |
Dashboard /wp-admin | 2,975 ▲76 | 6.04 ▼0.10 | 117.36 ▼17.48 | 171.77 ▼4.33 |
Posts /wp-admin/edit.php | 2,788 ▲64 | 3.24 ▼0.00 | 64.06 ▼0.92 | 137.42 ▼4.57 |
Add New Post /wp-admin/post-new.php | 3,739 ▲4 | 19.05 ▲0.43 | 457.20 ▼3.13 | 160.20 ▼2.64 |
Media Library /wp-admin/upload.php | 1,869 ▲117 | 5.70 ▲0.25 | 151.37 ▲8.66 | 179.88 ▼9.66 |
Galleries /wp-admin/edit.php?post_type=accordion_slider | 1,468 | 3.08 | 61.30 | 115.84 |
Add New /wp-admin/post-new.php?post_type=accordion_slider | 4,148 | 8.18 | 182.59 | 259.99 |
Uninstaller [IO: ▲3.04MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 4 options
- rpg-slider-images-default
- accordion-slider-v
- accordion-slider-installDate
- accordion-slider-type
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant ACCORDION_SLIDER_IMAGES - assumed 'ACCORDION_SLIDER_IMAGES' (this will throw an Error in a future version of PHP) in wp-content/plugins/accordion-slider-gallery/default_image.php on line 3
- > PHP Warning
Use of undefined constant ACCORDION_SLIDER_IMAGES - assumed 'ACCORDION_SLIDER_IMAGES' (this will throw an Error in a future version of PHP) in wp-content/plugins/accordion-slider-gallery/default_image.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/accordion-slider-gallery/includes/public/templates/design/accordion-slider/accordion-slider.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/accordion-slider-gallery/accordion-slider.php:18
- > PHP Warning
Use of undefined constant ACCORDION_SLIDER_IMAGES - assumed 'ACCORDION_SLIDER_IMAGES' (this will throw an Error in a future version of PHP) in wp-content/plugins/accordion-slider-gallery/default_image.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/accordion-slider-gallery/default_image.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/accordion-slider-gallery/includes/admin/accordion-slider-js-templates.php:3
- > PHP Warning
require(ACCORDION_SLIDER_LIBRARIESclass-gamajo-template-loader.php): failed to open stream: No such file or directory in wp-content/plugins/accordion-slider-gallery/includes/libraries/class-accordion-slider-template-loader.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accordion-slider-gallery/includes/admin/class-accordion-slider-admin.php:15
- > PHP Warning
include(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/accordion-slider-gallery/default_image.php on line 16
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6 in accordion-slider-gallery/assets to your readme.txt
- Donate link: Invalid URI ("")
accordion-slider-gallery/accordion-slider.php 85% from 13 tests
Analyzing the main PHP file in "Accordion Slider Gallery" version 2.2
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("accordion-slider-gallery.php" instead of "accordion-slider.php")
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
Success! There were no dangerous files found in this plugin18,546 lines of code in 77 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 0 | 13 | 5,563 |
CSS | 15 | 1,955 | 135 | 5,315 |
JavaScript | 11 | 526 | 255 | 2,253 |
Sass | 16 | 43 | 34 | 1,903 |
LESS | 16 | 41 | 51 | 1,870 |
PHP | 14 | 482 | 476 | 1,642 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 19.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 4.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 8 | 14.55% |
▷ Public methods | 42 | 76.36% |
▷ Protected methods | 3 | 5.45% |
▷ Private methods | 10 | 18.18% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/close.png | 0.27KB | 0.29KB | 0.00% |
assets/images/next.png | 1.32KB | 1.58KB | 0.00% |
assets/images/sprites.png | 0.41KB | 0.44KB | 0.00% |
assets/images/prev.png | 1.33KB | 1.59KB | 0.00% |