Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.90ms] Passed 4 tests
Analyzing server-side resources used by Elastic Slide
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.85 ▼2.30 |
Dashboard /wp-admin | 3.33 ▼0.02 | 44.97 ▼21.06 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.07 ▲4.57 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.47 ▼8.80 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.51 ▲5.75 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Elastic Slide
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.25 ▼1.15 | 1.70 ▼0.29 | 43.87 ▼1.68 |
Dashboard /wp-admin | 2,206 ▲15 | 4.83 ▼0.06 | 110.55 ▼1.87 | 40.24 ▼5.10 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.02 | 40.19 ▲3.21 | 34.47 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,533 ▲12 | 23.15 ▲0.01 | 656.07 ▲41.99 | 51.46 ▼2.82 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.21 ▲0.03 | 99.35 ▼2.88 | 46.41 ▲2.30 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/elastic-slide/plugin.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (screenshot-1.png Slider at full width), #2 (screenshot-2.png Responsive Slider in handheld mode)
elastic-slide/plugin.php 85% from 13 tests
The main file in "Elastic Slide" v. 0.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("elastic-slide.php" instead of "plugin.php")
- Description: The description should be shorter than 140 characters (currently 410 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected3,563 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 1,147 | 766 | 2,669 |
CSS | 4 | 82 | 20 | 427 |
HTML | 4 | 33 | 24 | 309 |
PHP | 1 | 26 | 49 | 158 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
7 PNG files occupy 0.40MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/nav.png | 0.78KB | 0.46KB | ▼ 40.28% |
assets/images/black_denim.png | 9.78KB | 10.98KB | 0.00% |
assets/images/carousel-arrow-left.png | 6.78KB | 2.64KB | ▼ 61.12% |
screenshot-1.png | 308.89KB | 95.84KB | ▼ 68.97% |
assets/images/monotone_arrow_right.png | 0.43KB | 0.25KB | ▼ 40.64% |