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.62MB] [CPU: ▼258.56ms] Passed 4 tests
Server-side resources used by imPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.15 ▲0.43 | 36.41 ▲10.02 |
Dashboard /wp-admin | 3.74 ▲0.69 | 45.78 ▼4.05 |
Posts /wp-admin/edit.php | 3.79 ▲0.69 | 44.74 ▼1.13 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.68 | 99.06 ▼1,025.16 |
Media Library /wp-admin/upload.php | 3.69 ▲0.68 | 34.02 ▼3.91 |
Impress /wp-admin/edit.php?post_type=impress | 3.73 | 33.34 |
Order /wp-admin/edit.php?post_type=impress&page=product-order | 3.66 | 43.90 |
Add New /wp-admin/post-new.php?post_type=impress | 3.53 | 29.59 |
Settings /wp-admin/edit.php?post_type=impress&page=impress_theme_options | 3.66 | 38.38 |
Server storage [IO: ▲2.91MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 245 new files
Database: no new tables, 1 new option
New WordPress options |
---|
impress_options |
Browser metrics Passed 4 tests
Checking browser requirements for imPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,751 ▲145 | 15.98 ▲0.17 | 7.57 ▼1.20 | 51.68 ▲3.57 |
Dashboard /wp-admin | 2,999 ▲149 | 6.18 ▲0.16 | 138.02 ▲11.51 | 120.38 ▲21.93 |
Posts /wp-admin/edit.php | 2,741 ▲35 | 2.62 ▼0.07 | 63.47 ▼0.63 | 94.75 ▲1.13 |
Add New Post /wp-admin/post-new.php | 1,668 ▼189 | 22.06 ▲2.84 | 267.42 ▼100.38 | 113.79 ▲5.68 |
Media Library /wp-admin/upload.php | 1,759 ▼13 | 5.02 ▲0.01 | 124.13 ▼11.60 | 126.16 ▲11.89 |
Impress /wp-admin/edit.php?post_type=impress | 1,434 | 2.58 | 65.94 | 59.81 |
Order /wp-admin/edit.php?post_type=impress&page=product-order | 1,050 | 2.36 | 49.41 | 61.42 |
Add New /wp-admin/post-new.php?post_type=impress | 3,072 | 8.86 | 224.81 | 174.08 |
Settings /wp-admin/edit.php?post_type=impress&page=impress_theme_options | 1,618 | 3.03 | 69.24 | 92.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 1 option in the database
- impress_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=impress
- > Notice in wp-content/plugins/wp-js-impress/inc/sort-order.php+111
Trying to get property 'post_status' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=impress&page=impress_theme_options
- > Notice in wp-content/plugins/wp-js-impress/inc/options/options.php+466
Undefined offset: 1
- > GET request to /wp-admin/edit.php?post_type=impress&page=impress_theme_options
- > Notice in wp-content/plugins/wp-js-impress/inc/options/fields/google_webfonts/field_google_webfonts.php+46
Undefined property: stdClass::$items
- > GET request to /wp-admin/edit.php?post_type=impress&page=impress_theme_options
- > Warning in wp-content/plugins/wp-js-impress/inc/options/fields/google_webfonts/field_google_webfonts.php+46
Invalid argument supplied for foreach()
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 66× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-js-impress/inc/meta-box/demo/include-by-ID-or-page-template.php:44
- > PHP Fatal error
Uncaught Error: Class 'IMPRESS_Options' not found in wp-content/plugins/wp-js-impress/inc/options/validation/comma_numeric/validation_comma_numeric.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-js-impress/inc/shortcode.php:162
- > PHP Fatal error
Uncaught Error: Class 'IMPRESS_Options' not found in wp-content/plugins/wp-js-impress/inc/options/validation/color/validation_color.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-js-impress/inc/meta-box/demo/demo.php:283
- > PHP Fatal error
Uncaught Error: Class 'IMPRESS_Options' not found in wp-content/plugins/wp-js-impress/inc/options/validation/html/validation_html.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-js-impress/inc/meta-box/demo/all-custom-post-types.php:5
- > PHP Fatal error
Uncaught Error: Class 'IMPRESS_Options' not found in wp-content/plugins/wp-js-impress/inc/options/fields/range/field_range.php:2
- > PHP Fatal error
Uncaught Error: Class 'IMPRESS_Options' not found in wp-content/plugins/wp-js-impress/inc/options/fields/tags_select/field_tags_select.php:2
- > PHP Fatal error
Uncaught Error: Class 'IMPRESS_Options' not found in wp-content/plugins/wp-js-impress/inc/options/fields/text/field_text.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/edit.php?post_type=impress&page=impress_theme_options
- > Network (severe)
http://fonts.googleapis.com/css?family= - Failed to load resource: the server responded with a status of 400 (Bad Request)
- > GET request to /wp-admin/edit.php?post_type=impress&page=impress_theme_options
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=5.8.1 1:31592 "jQuery.Deferred exception: $colorpicker_inputs.live is not a function" "TypeError: $colorpicker_inputs.live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-js-impress/inc/options/fields/color/field_color.js?ver=1635089927:42:22)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=5.8.1:2:30340)" undefined
- > GET request to /wp-admin/edit.php?post_type=impress&page=impress_theme_options
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,farbtastic&ver=5.8.1 1:31702 Uncaught TypeError: $colorpicker_inputs.live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
wp-js-impress/impress.php 92% from 13 tests
The principal PHP file in "imPress" v. 0.1.4 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-js-impress.php" instead of "impress.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected9,908 lines of code in 157 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 93 | 1,677 | 2,400 | 4,980 |
CSS | 18 | 186 | 283 | 2,008 |
JavaScript | 29 | 308 | 387 | 1,281 |
LESS | 7 | 140 | 34 | 718 |
PO File | 7 | 164 | 210 | 539 |
JSON | 1 | 1 | 0 | 278 |
SVG | 1 | 0 | 1 | 101 |
Markdown | 1 | 1 | 0 | 3 |
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.35 |
Average class complexity | 7.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 73 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 73 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 226 | |
▷ Static methods | 97 | 42.92% |
▷ Public methods | 226 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 48 | |
▷ Named functions | 48 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 18 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 1 test
Image compression 0% from 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
74 PNG files occupy 2.32MB with 1.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/impress.png | 1.31KB | 0.50KB | ▼ 61.76% |
img/hexagon-02.png | 31.26KB | 21.01KB | ▼ 32.78% |
img/stars-4.png | 42.25KB | 23.35KB | ▼ 44.73% |
inc/options/fields/upload/blank.png | 0.90KB | 0.09KB | ▼ 89.72% |
img/icons/Icon.png | 25.02KB | 2.88KB | ▼ 88.50% |