Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/cooksnaps/cooksnaps.php+144
Methods with the same name as their class will not be constructors in a future version of PHP; Cooksnaps_Widget has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼308.27ms] Passed 4 tests
An overview of server-side resources used by Cooksnaps
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.80 ▼1.04 | 5.43 ▼22.92 |
Dashboard /wp-admin | 1.81 ▼1.24 | 6.58 ▼37.37 |
Posts /wp-admin/edit.php | 1.82 ▼1.29 | 5.13 ▼36.46 |
Add New Post /wp-admin/post-new.php | 1.81 ▼3.61 | 4.71 ▼1,125.77 |
Media Library /wp-admin/upload.php | 1.81 ▼1.19 | 5.21 ▼33.48 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 4 new options
New WordPress options |
---|
cooksnaps_locale |
widget_cooksnaps_wpwidget |
cooksnaps_key |
widget_cooksnaps_gallery_wpwidget |
Browser metrics Passed 4 tests
A check of browser resources used by Cooksnaps
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,855 ▲273 | 16.73 ▲0.77 | 19.99 ▲11.46 | 44.43 ▼4.87 |
Dashboard /wp-admin | 2,937 ▲84 | 5.94 ▲0.06 | 133.46 ▲2.09 | 127.27 ▲23.55 |
Posts /wp-admin/edit.php | 2,732 ▲26 | 2.69 ▼0.00 | 62.20 ▼3.04 | 87.51 ▼2.79 |
Add New Post /wp-admin/post-new.php | 1,870 ▲17 | 19.19 ▼0.01 | 360.34 ▼30.16 | 104.26 ▲0.98 |
Media Library /wp-admin/upload.php | 1,730 ▼42 | 5.02 ▲0.02 | 127.02 ▼35.56 | 116.14 ▲0.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/cooksnaps/cooksnaps.php+144
Methods with the same name as their class will not be constructors in a future version of PHP; Cooksnaps_Widget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 2 options
- widget_cooksnaps_wpwidget
- widget_cooksnaps_gallery_wpwidget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/cooksnaps/admin/cooksnaps-post-column.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/cooksnaps/admin/cooksnaps_settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cooksnaps/cooksnaps.php:128
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cooksnaps/cooksnapbox.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Cooksnaps Full widget), #2 (Alternate Cooksnaps Mini Button), #3 (Once installed, click on 'Cooksnap' to finish the setup), #4 (Recipe Analytics), #5 (Optionally put Cooksnaps in your sidebar using the Wordpress Widgets menu), #6 (Add the Cooksnaps Gallery Widget to your sidebar to show all your latest Cooksnaps on your site)
cooksnaps/cooksnaps.php 92% from 13 tests
The entry point to "Cooksnaps" version 2.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 154 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin333 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 36 | 35 | 223 |
PO File | 3 | 24 | 34 | 110 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/cooksnaps-16.png | 3.58KB | 1.08KB | ▼ 69.76% |
img/cooksnaps_grey_18.png | 0.55KB | 0.66KB | 0.00% |
img/cooksnaps-32.png | 5.50KB | 1.74KB | ▼ 68.33% |
img/cooksnaps_16_bw.png | 0.55KB | 0.93KB | 0.00% |