Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼0.17ms] Passed 4 tests
An overview of server-side resources used by Slider by webxapp - Responsive Image Slider for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 45.66 ▲0.97 |
Dashboard /wp-admin | 3.43 ▲0.13 | 53.12 ▼2.50 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 55.47 ▲2.43 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 94.08 ▼1.56 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 40.95 ▲7.42 |
Sliders /wp-admin/edit.php?post_type=wxas_slider | 3.40 | 39.84 |
Add New Slider /wp-admin/post-new.php?post_type=wxas_slider | 3.46 | 60.71 |
Themes /wp-admin/edit.php?post_type=wxas_themes | 3.41 | 39.90 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Slider by webxapp - Responsive Image Slider for WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,133 ▲372 | 14.96 ▲0.83 | 6.02 ▲4.23 | 39.58 ▼4.54 |
Dashboard /wp-admin | 2,432 ▲252 | 6.34 ▲0.69 | 120.58 ▲31.30 | 85.01 ▲40.66 |
Posts /wp-admin/edit.php | 2,372 ▲272 | 3.68 ▲1.73 | 54.48 ▲16.78 | 76.51 ▲38.54 |
Add New Post /wp-admin/post-new.php | 1,771 ▲245 | 24.31 ▲0.80 | 592.57 ▼110.00 | 174.35 ▲115.58 |
Media Library /wp-admin/upload.php | 1,515 ▲115 | 4.22 ▼0.04 | 88.18 ▼17.27 | 82.70 ▲36.09 |
Sliders /wp-admin/edit.php?post_type=wxas_slider | 1,339 | 3.56 | 47.15 | 69.18 |
Add New Slider /wp-admin/post-new.php?post_type=wxas_slider | 2,264 | 3.85 | 69.13 | 57.24 |
Themes /wp-admin/edit.php?post_type=wxas_themes | 1,351 | 3.38 | 49.66 | 80.18 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 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
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/slider-by-webxapp/includes/wxas_shortcode.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/slider-by-webxapp/admin/view/wxas_upload.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/slider-by-webxapp/admin/view/slide_settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/slider-by-webxapp/admin/view/add_shortcode_view.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/slider-by-webxapp/admin/view/theme_metabox_view.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/slider-by-webxapp/wxas.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #6 (Slider image metadata editing modal.), #7 (Easily select a slider to insert into your post or page.), #8 (The final result.)
slider-by-webxapp/wxas.php 85% from 13 tests
The primary PHP file in "Slider by webxapp - Responsive Image Slider for WordPress" version 1.2.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("slider-by-webxapp.php" instead of "wxas.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
There were no executable files found in this plugin4,999 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 385 | 203 | 2,105 |
CSS | 6 | 215 | 44 | 1,741 |
PHP | 11 | 113 | 23 | 1,015 |
SVG | 3 | 1 | 1 | 138 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 14.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 10 | 29.41% |
▷ Public methods | 31 | 91.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 8.82% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wp-post_logo.png | 3.20KB | 2.54KB | ▼ 20.43% |
assets/images/video_logo.png | 0.28KB | 0.28KB | 0.00% |
assets/images/wxas_logo.png | 16.76KB | 8.06KB | ▼ 51.89% |
assets/images/wxas_logo_small.png | 1.11KB | 1.13KB | 0.00% |