Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼3.07ms] Passed 4 tests
Server-side resources used by Haste Impress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 36.75 ▼0.50 |
Dashboard /wp-admin | 3.51 ▲0.17 | 45.52 ▼13.78 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 49.34 ▲2.71 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 84.98 ▼0.72 |
Media Library /wp-admin/upload.php | 3.43 ▲0.21 | 37.73 ▲6.33 |
All Steps /wp-admin/edit.php?post_type=steps | 3.48 | 38.15 |
Presentations /wp-admin/edit-tags.php?taxonomy=presentations&post_type=steps | 3.43 | 34.17 |
Add New /wp-admin/post-new.php?post_type=steps | 3.59 | 49.74 |
Server storage [IO: ▲7.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 179 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Haste Impress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.35 ▼1.03 | 1.64 ▲0.04 | 40.56 ▲0.37 |
Dashboard /wp-admin | 2,240 ▲48 | 5.86 ▲0.81 | 95.59 ▼13.76 | 37.25 ▼2.17 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.04 ▼0.00 | 40.52 ▲4.08 | 34.99 ▼3.16 |
Add New Post /wp-admin/post-new.php | 1,559 ▲40 | 23.42 ▲0.06 | 602.68 ▼67.77 | 60.68 ▲8.81 |
Media Library /wp-admin/upload.php | 1,422 ▲37 | 4.23 ▼0.03 | 98.22 ▼3.04 | 42.93 ▼3.00 |
All Steps /wp-admin/edit.php?post_type=steps | 1,109 | 2.02 | 33.78 | 29.07 |
Presentations /wp-admin/edit-tags.php?taxonomy=presentations&post_type=steps | 1,262 | 2.14 | 27.32 | 28.99 |
Add New /wp-admin/post-new.php?post_type=steps | 2,691 | 7.97 | 175.13 | 70.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'HasteImpress' not found
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
- 31× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to get property 'post_name' of non-object in wp-content/plugins/haste-impress/templates/slide-parameters.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/haste-impress/templates/content-video.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/haste-impress/templates/header-impress.php:3
- > PHP Notice
Undefined variable: step_format in wp-content/plugins/haste-impress/templates/slide-parameters.php on line 1
- > PHP Notice
Undefined variable: step_format in wp-content/plugins/haste-impress/templates/slide-parameters.php on line 1
- > PHP Notice
Undefined variable: step_format in wp-content/plugins/haste-impress/templates/slide-parameters.php on line 1
- > PHP Notice
Trying to get property 'post_name' of non-object in wp-content/plugins/haste-impress/templates/slide-parameters.php on line 1
- > PHP Notice
Trying to get property 'post_name' of non-object in wp-content/plugins/haste-impress/templates/slide-parameters.php on line 1
- > PHP Notice
Trying to get property 'post_name' of non-object in wp-content/plugins/haste-impress/templates/slide-parameters.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_footer() in wp-content/plugins/haste-impress/templates/footer-impress.php:1
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/post-new.php?post_type=steps
- > Network (severe)
wp-content/themes/twentytwentyone/core/assets/css/admin.css - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=steps
- > Network (severe)
wp-content/themes/twentytwentyone/core/assets/js/admin.js - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
3 plugin tags: presentations, presentment, impress
haste-impress/haste-impress.php 92% from 13 tests
"Haste Impress" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
There were no executable files found in this plugin42,517 lines of code in 69 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 26 | 0 | 0 | 36,507 |
CSS | 8 | 354 | 202 | 2,867 |
JavaScript | 19 | 720 | 488 | 2,009 |
PHP | 15 | 225 | 257 | 1,027 |
PO File | 1 | 41 | 45 | 107 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 21 | 61.76% |
▷ Protected methods | 13 | 38.24% |
▷ Private methods | 0 | 0.00% |
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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/apple-touch-icon.png | 3.86KB | 2.54KB | ▼ 34.25% |
core/assets/images/placeholder.png | 0.22KB | 0.12KB | ▼ 43.89% |
assets/images/favicon.png | 1.30KB | 1.27KB | ▼ 2.63% |