Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.89MB] [CPU: ▼34.77ms] Passed 4 tests
An overview of server-side resources used by Polaroid Slider Lite
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.08 | 34.93 ▼3.85 |
Dashboard /wp-admin | 3.05 ▼0.25 | 22.46 ▼24.95 |
Posts /wp-admin/edit.php | 3.05 ▼0.30 | 26.97 ▼20.78 |
Add New Post /wp-admin/post-new.php | 3.05 ▼2.83 | 22.48 ▼82.10 |
Media Library /wp-admin/upload.php | 3.05 ▼0.17 | 23.25 ▼11.25 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_polaroid_slides_lite |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Polaroid Slider Lite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲195 | 13.69 ▼1.07 | 9.91 ▲8.11 | 40.93 ▼10.81 |
Dashboard /wp-admin | 2,221 ▲30 | 5.00 ▼0.90 | 105.64 ▲1.44 | 74.60 ▲34.39 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.04 ▲0.03 | 38.30 ▲0.30 | 34.65 ▼2.45 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.08 ▼0.02 | 740.54 ▲113.21 | 59.23 ▲10.02 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.10 ▼0.10 | 96.52 ▼3.72 | 73.17 ▲26.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/polaroid-slider-lite/polaroid-slider.php+72
Use of undefined constant EMU2_I18N_DOMAIN - assumed 'EMU2_I18N_DOMAIN' (this will throw an Error in a future version of PHP)
- Zombie tables detected upon uninstall: 1 table
- wp_polaroid_slides_lite
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/polaroid-slider-lite/includes/shortcodes.php:2
- > PHP Fatal error
require_once(): Failed opening required 'POLAROIDSLIDER_PATH/settings/slide.php' (include_path='.:/usr/share/php') in wp-content/plugins/polaroid-slider-lite/settings.php on line 3
- > PHP Warning
Use of undefined constant AJAXSEARCHPRO_PATH - assumed 'AJAXSEARCHPRO_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/polaroid-slider-lite/settings/types/settings.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/polaroid-slider-lite/settings/types.class.php:568
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/polaroid-slider-lite/polaroid-slider.php:13
- > PHP Warning
Use of undefined constant POLAROIDSLIDER_PATH - assumed 'POLAROIDSLIDER_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/polaroid-slider-lite/settings.php on line 3
- > PHP Warning
require_once(AJAXSEARCHPRO_PATH/settings/search.php): failed to open stream: No such file or directory in wp-content/plugins/polaroid-slider-lite/settings/types/settings.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'AJAXSEARCHPRO_PATH/settings/search.php' (include_path='.:/usr/share/php') in wp-content/plugins/polaroid-slider-lite/settings/types/settings.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/polaroid-slider-lite/settings/slide.php:40
- > PHP Warning
require_once(POLAROIDSLIDER_PATH/settings/slide.php): failed to open stream: No such file or directory in wp-content/plugins/polaroid-slider-lite/settings.php on line 3
- > 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 important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: polaroid slider, slider, content slider, slides, free slider
polaroid-slider-lite/polaroid-slider.php 92% from 13 tests
This is the main PHP file of "Polaroid Slider Lite" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("polaroid-slider-lite.php" instead of "polaroid-slider.php")
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 detected4,233 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 24 | 306 | 226 | 2,654 |
PHP | 7 | 57 | 45 | 1,092 |
CSS | 2 | 79 | 0 | 487 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 3.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 1 | 2.70% |
▷ Public methods | 35 | 94.59% |
▷ Protected methods | 2 | 5.41% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
18 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/fullscreen.png | 3.91KB | 1.10KB | ▼ 71.83% |
slider.png | 3.50KB | 0.87KB | ▼ 75.10% |
settings/types/icons/labelposition.png | 12.28KB | 5.62KB | ▼ 54.27% |
settings/types/icons/point.png | 2.79KB | 0.16KB | ▼ 94.11% |
settings/types/icons/settings.png | 4.00KB | 0.96KB | ▼ 76.03% |