Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.65MB] [CPU: ▼20.01ms] Passed 4 tests
Analyzing server-side resources used by Image Price Calculator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 41.75 ▼0.84 |
Dashboard /wp-admin | 3.36 ▲0.01 | 51.84 ▼15.60 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 53.00 ▼0.21 |
Add New Post /wp-admin/post-new.php | 3.21 ▼2.68 | 39.78 ▼62.90 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.52 ▼0.68 |
Add New /wp-admin/post-new.php?post_type=image_price_calc | 3.14 | 35.12 |
Image Price Calculator Forms /wp-admin/edit.php?post_type=image_price_calc | 3.32 | 41.00 |
Server storage [IO: ▲2.48MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Image Price Calculator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲99 | 14.35 ▲0.43 | 1.92 ▲0.28 | 42.91 ▲0.42 |
Dashboard /wp-admin | 2,229 ▲52 | 5.61 ▲0.01 | 94.71 ▼3.40 | 40.78 ▲0.03 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.00 ▼0.01 | 40.30 ▼0.63 | 36.31 ▲0.49 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 22.99 ▼0.11 | 606.45 ▼77.01 | 46.00 ▼8.89 |
Media Library /wp-admin/upload.php | 1,434 ▲31 | 4.19 ▲0.06 | 101.94 ▼2.91 | 44.87 ▼0.74 |
Add New /wp-admin/post-new.php?post_type=image_price_calc | 2,486 | 8.20 | 178.59 | 79.40 |
Image Price Calculator Forms /wp-admin/edit.php?post_type=image_price_calc | 1,111 | 1.97 | 30.13 | 30.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=image_price_calc
- > Notice in wp-content/plugins/image-price-calculator/spcadmin.php+49
Undefined index: activarwoo
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=image_price_calc
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/image-price-calculator/formgencode.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/image-price-calculator/imagepricecalc.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-price-calculator/spcadmin.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=image_price_calc
- > Network (severe)
wp-admin/wp-content/plugins/Image-price-calculator/ajax-loader.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Front-end of plugin. Price and images change based on which buttons are selected.), #2 (Back-end of plugin automatically displays shortcode once form is created.)
image-price-calculator/imagepricecalc.php 92% from 13 tests
The main file in "Image Price Calculator" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("image-price-calculator.php" instead of "imagepricecalc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin388 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 62 | 5 | 199 |
PHP | 3 | 127 | 18 | 181 |
CSS | 1 | 8 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.14% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 2.27MB with 1.69MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Advance/nameImagextra2kind1.png | 89.51KB | 21.59KB | ▼ 75.88% |
Advance/nameImageCbox.png | 56.94KB | 12.60KB | ▼ 77.88% |
Advance/nameImagextra1kind2.png | 323.52KB | 79.88KB | ▼ 75.31% |
Basic/nameImageRadio2.png | 188.96KB | 69.28KB | ▼ 63.34% |
Basic/nameImagextra1kind2.png | 58.21KB | 12.09KB | ▼ 79.23% |