Benchmarks
Plugin footprint 65% from 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.03MB] [CPU: ▼6.19ms] Passed 4 tests
Analyzing server-side resources used by Tile Slider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.42 ▼5.95 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.80 ▼3.76 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.86 ▲0.08 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.61 ▼15.14 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.32 ▲3.24 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_tile_slider |
wp_tile_slide |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Tile Slider
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲189 | 13.78 ▼0.60 | 8.14 ▲6.03 | 39.52 ▼9.07 |
Dashboard /wp-admin | 2,222 ▲34 | 5.02 ▲0.13 | 108.83 ▼0.85 | 106.71 ▲59.47 |
Posts /wp-admin/edit.php | 2,144 ▲55 | 2.38 ▲0.36 | 40.77 ▲4.42 | 37.12 ▲4.28 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 23.22 ▲0.04 | 622.64 ▼29.91 | 33.84 ▼33.20 |
Media Library /wp-admin/upload.php | 1,423 ▲38 | 4.31 ▲0.02 | 101.03 ▲1.13 | 47.01 ▲2.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_tile_slide
- wp_tile_slider
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
The following issues need your attention
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/tile-slider/tile-slider.php:76
- > PHP Fatal error
Uncaught Error: Call to undefined function get_tile_slide_nav() in wp-content/plugins/tile-slider/views/admin-slide-form.php:7
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/tile-slider/tile-slider.php on line 30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_tile_slider_nav() in wp-content/plugins/tile-slider/views/admin-slider-form.php:5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/tile-slider/tile-slider.php on line 53
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/tile-slider/tile-slider.php on line 67
- > PHP Fatal error
Uncaught Error: Call to undefined function get_tile_slide_nav() in wp-content/plugins/tile-slider/views/admin-slide-posts.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_tile_slide_nav() in wp-content/plugins/tile-slider/views/admin-slide-page.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_tile_slider_nav() in wp-content/plugins/tile-slider/views/admin-slider-page.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_tile_slide_nav() in wp-content/plugins/tile-slider/admin-page.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Admin Panel) image required
tile-slider/tile-slider.php Passed 13 tests
The entry point to "Tile Slider" version 1.0 is a PHP file that has certain tags in its header comment area
64 characters long description:
Wordpress implementation of Tile Slider(http://kumarz.in/tile/).
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 plugin2,235 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 39 | 214 | 1,025 |
PHP | 8 | 80 | 134 | 793 |
CSS | 4 | 27 | 26 | 417 |
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.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
7 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
1.png | 72.28KB | 19.40KB | ▼ 73.16% |
images/tile-bg.png | 1.10KB | 1.41KB | 0.00% |
images/bullets-bg.png | 0.13KB | 0.09KB | ▼ 25.95% |
images/bullets.png | 0.50KB | 0.45KB | ▼ 9.41% |
images/delete.png | 0.39KB | 0.25KB | ▼ 37.06% |