Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/poros-slider/includes/porosadmin.php+926
Function create_function() is deprecated
Server metrics [RAM: ▼1.68MB] [CPU: ▼55.68ms] Passed 4 tests
A check of server-side resources used by Poros Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 4.64 ▼41.11 |
Dashboard /wp-admin | 2.41 ▼0.89 | 7.60 ▼48.50 |
Posts /wp-admin/edit.php | 2.41 ▼0.95 | 7.19 ▼43.31 |
Add New Post /wp-admin/post-new.php | 2.41 ▼3.48 | 7.89 ▼89.78 |
Media Library /wp-admin/upload.php | 2.41 ▼0.82 | 6.84 ▼27.45 |
Server storage [IO: ▲0.89MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Poros Slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.71 ▲0.48 | 1.78 ▲0.11 | 45.58 ▲2.21 |
Dashboard /wp-admin | 2,210 ▲39 | 5.77 ▲0.17 | 89.34 ▼10.53 | 69.99 ▲21.91 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.04 ▼0.08 | 34.50 ▼4.14 | 31.75 ▼3.23 |
Add New Post /wp-admin/post-new.php | 1,539 ▼6 | 17.48 ▼5.88 | 779.39 ▲81.95 | 53.24 ▼9.49 |
Media Library /wp-admin/upload.php | 1,418 ▲15 | 4.09 ▼0.16 | 109.16 ▲4.29 | 80.27 ▲34.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/poros-slider/includes/porosadmin.php+926
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function query() on null in wp-content/plugins/poros-slider/uninstall.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/poros-slider/includes/porosadmin.php:926
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/poros-slider/includes/porosclient.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/poros-slider/poroslider.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: show, presentation, slide, slider, poros...
poros-slider/poroslider.php 92% from 13 tests
Analyzing the main PHP file in "Poros Slider" version 1.0.1
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("poros-slider.php" instead of "poroslider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,335 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 163 | 177 | 695 |
JavaScript | 11 | 34 | 57 | 490 |
CSS | 3 | 36 | 0 | 150 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 57.00 |
▷ Minimum class complexity | 57.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.70MB with 0.69MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/buttons/forwardnavpressed.png | 49.30KB | 1.52KB | ▼ 96.93% |
assets/buttons/backnav.png | 47.85KB | 0.51KB | ▼ 98.94% |
assets/images/poros_logo.png | 53.71KB | 1.16KB | ▼ 97.84% |
assets/buttons/downnav.png | 47.62KB | 0.49KB | ▼ 98.96% |
assets/images/poros_logo_small.fw.png | 48.95KB | 0.33KB | ▼ 99.33% |