Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.34MB] [CPU: ▼6.48ms] Passed 4 tests
A check of server-side resources used by Gravitation Slider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.51 | 42.70 ▲3.55 |
Dashboard /wp-admin | 3.84 ▲0.53 | 51.53 ▲0.83 |
Posts /wp-admin/edit.php | 3.89 ▲0.53 | 49.24 ▲1.77 |
Add New Post /wp-admin/post-new.php | 5.67 ▼0.23 | 62.92 ▼29.77 |
Media Library /wp-admin/upload.php | 3.76 ▲0.53 | 38.99 ▲1.24 |
Add New Slider /wp-admin/post-new.php?post_type=gv_slider | 3.68 | 38.15 |
All sliders /wp-admin/edit.php?post_type=gv_slider | 3.79 | 38.40 |
Server storage [IO: ▲1.90MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 151 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Gravitation Slider
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,982 ▲236 | 13.62 ▼1.14 | 9.79 ▲8.29 | 43.59 ▲0.58 |
Dashboard /wp-admin | 2,195 ▲7 | 4.85 ▼0.01 | 106.42 ▲3.94 | 39.84 ▼1.60 |
Posts /wp-admin/edit.php | 2,050 ▼39 | 2.00 ▼0.01 | 37.46 ▼1.39 | 34.65 ▼0.79 |
Add New Post /wp-admin/post-new.php | 1,565 ▲46 | 23.38 ▲0.27 | 674.97 ▼24.16 | 38.75 ▼15.68 |
Media Library /wp-admin/upload.php | 1,433 ▲45 | 4.21 ▼0.01 | 97.22 ▼8.13 | 42.52 ▼5.54 |
Add New Slider /wp-admin/post-new.php?post_type=gv_slider | 2,263 | 5.03 | 96.74 | 104.44 |
All sliders /wp-admin/edit.php?post_type=gv_slider | 929 | 1.92 | 29.76 | 26.02 |
Help /wp-admin/gravitation-slider.php | 26 | 0.44 | 0.09 | 12.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=gv_slider
- > User deprecated in wp-includes/functions.php+5828
Hook dbx_post_advanced is deprecated since version 3.7.0! Use add_meta_boxes instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=gv_slider
- > Notice in wp-content/plugins/gravitation-slider/gravitation-slider.php+610
Trying to get property 'ID' of non-object
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
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/gravitation-slider/gravitation-slider.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gravitation-slider/custom-meta-boxes/custom-meta-boxes.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gravitation-slider/custom-meta-boxes/example-functions.php:106
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravitation-slider/custom-meta-boxes/classes.fields.php:633
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/gravitation-slider.php
- > Network (severe)
wp-admin/gravitation-slider.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (screenshot-1.png), #2 (screenshot-2.png)
gravitation-slider/gravitation-slider.php Passed 13 tests
Analyzing the main PHP file in "Gravitation Slider" version 1.0.2
79 characters long description:
Gravitation Slider, is a plugin to display slider on your site, with shortcodes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin10,805 lines of code in 103 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 62 | 1,122 | 831 | 4,158 |
CSS | 19 | 354 | 159 | 3,229 |
PHP | 7 | 984 | 406 | 2,110 |
JSON | 8 | 0 | 0 | 640 |
SVG | 2 | 0 | 0 | 464 |
Markdown | 1 | 27 | 0 | 72 |
PO File | 2 | 16 | 20 | 63 |
Bourne Shell | 1 | 24 | 0 | 55 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 1 | 4.00% |
▷ Concrete classes | 24 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 113 | |
▷ Static methods | 2 | 1.77% |
▷ Public methods | 107 | 94.69% |
▷ Protected methods | 3 | 2.65% |
▷ Private methods | 3 | 2.65% |
Functions | 37 | |
▷ Named functions | 36 | 97.30% |
▷ Anonymous functions | 1 | 2.70% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
24 PNG files occupy 0.54MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
custom-meta-boxes/images/cmb-icon-remove@2x.png | 1.14KB | 0.23KB | ▼ 79.47% |
custom-meta-boxes/css/vendor/jquery-ui/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
custom-meta-boxes/images/cmb-icon-remove.png | 1.00KB | 0.14KB | ▼ 85.64% |
custom-meta-boxes/css/vendor/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |
custom-meta-boxes/css/vendor/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |