Benchmarks
Plugin footprint 58% 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
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/polaroid-plus-gallery/wp-polaroidplus.php+32
Methods with the same name as their class will not be constructors in a future version of PHP; PPGallery has a deprecated constructor
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.64ms] Passed 4 tests
Analyzing server-side resources used by WP-Polaroid Plus
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.36 ▼0.06 |
Dashboard /wp-admin | 3.32 ▲0.02 | 42.86 ▼3.36 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.02 ▼2.92 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.50 ▼8.20 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.24 ▲2.52 |
WP-Polaroid Plus /wp-admin/options-general.php?page=wpPolaroidPlus | 3.21 | 30.82 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP-Polaroid Plus
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲147 | 13.55 ▼1.03 | 7.21 ▲5.02 | 40.57 ▼2.76 |
Dashboard /wp-admin | 2,212 ▲24 | 5.83 ▼0.05 | 103.98 ▼9.56 | 39.12 ▼2.81 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.02 ▼0.00 | 34.14 ▼1.61 | 35.50 ▲1.43 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.30 ▼5.06 | 648.73 ▲56.23 | 61.14 ▲6.00 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.28 ▲0.02 | 92.93 ▼4.03 | 40.14 ▼1.82 |
WP-Polaroid Plus /wp-admin/options-general.php?page=wpPolaroidPlus | 1,031 | 2.03 | 36.28 | 33.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/polaroid-plus-gallery/uninstall.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/polaroid-plus-gallery/wp-polaroidplus.php:53
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (WP-Polaroid Plus), #2 (Choose the options you need.)
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
polaroid-plus-gallery/wp-polaroidplus.php 92% from 13 tests
"WP-Polaroid Plus" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("polaroid-plus-gallery.php" instead of "wp-polaroidplus.php")
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
Everything looks great! No dangerous files found in this plugin1,427 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 181 | 146 | 795 |
PHP | 2 | 107 | 104 | 494 |
CSS | 1 | 13 | 4 | 138 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 74.00 |
▷ Minimum class complexity | 74.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 6.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.26MB with 0.15MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/sliderblack.png | 0.24KB | 0.13KB | ▼ 47.77% |
screenshot-1.png | 227.94KB | 78.26KB | ▼ 65.67% |
screenshot-2.png | 41.94KB | 16.06KB | ▼ 61.71% |
img/slider.png | 0.24KB | 0.13KB | ▼ 48.40% |