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.02MB] [CPU: ▼7.95ms] Passed 4 tests
Analyzing server-side resources used by Ultra Camera Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.39 ▼4.06 |
Dashboard /wp-admin | 3.34 ▼0.01 | 52.42 ▼10.39 |
Posts /wp-admin/edit.php | 3.40 ▲0.03 | 49.37 ▼0.57 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.03 | 95.63 ▼16.76 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 37.85 ▲0.58 |
All Slides /wp-admin/edit.php?post_type=ultra_slider | 3.31 | 38.18 |
Add New Slide /wp-admin/post-new.php?post_type=ultra_slider | 3.39 | 48.42 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Ultra Camera Slider: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,049 ▲278 | 13.89 ▼0.26 | 13.75 ▲11.88 | 41.44 ▼3.08 |
Dashboard /wp-admin | 2,223 ▲43 | 5.50 ▼0.16 | 97.20 ▲6.80 | 78.21 ▲32.88 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.96 ▼0.02 | 35.05 ▼4.72 | 33.79 ▼2.21 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 23.20 ▲0.06 | 697.39 ▲11.39 | 54.83 ▼0.88 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.18 ▼0.02 | 101.84 ▼1.99 | 69.98 ▲21.68 |
All Slides /wp-admin/edit.php?post_type=ultra_slider | 1,098 | 1.93 | 33.38 | 30.19 |
Add New Slide /wp-admin/post-new.php?post_type=ultra_slider | 2,188 | 7.65 | 169.40 | 99.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultra-camera-slider/index.php:16
- > 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 important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Contributors: Plugin contributors field is missing
ultra-camera-slider/index.php 85% from 13 tests
"Ultra Camera Slider" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("ultra-camera-slider.php" instead of "index.php")
- Description: The description should be shorter than 140 characters (currently 227 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,256 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 0 | 42 | 1,026 |
JavaScript | 3 | 3 | 82 | 134 |
PHP | 1 | 38 | 14 | 95 |
XML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
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 | 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
12 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/patterns/overlay5.png | 0.90KB | 0.10KB | ▼ 89.18% |
images/patterns/overlay7.png | 0.09KB | 0.09KB | ▼ 4.12% |
images/patterns/overlay1.png | 0.92KB | 0.10KB | ▼ 89.11% |
images/patterns/overlay2.png | 0.91KB | 0.10KB | ▼ 89.30% |
images/patterns/overlay4.png | 0.90KB | 0.10KB | ▼ 89.39% |