Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.91ms] Passed 4 tests
Analyzing server-side resources used by HTML Demos
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 45.07 ▼2.85 |
Dashboard /wp-admin | 3.34 ▲0.03 | 52.94 ▼1.15 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 53.57 ▲0.62 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 106.24 ▲12.18 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.48 ▼0.26 |
HTML Demos /wp-admin/edit.php?post_type=html_demos | 3.31 | 39.03 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=html_demos | 3.26 | 38.89 |
Add New /wp-admin/post-new.php?post_type=html_demos | 3.28 | 49.07 |
Server storage [IO: ▲1.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 209 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for HTML Demos
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲90 | 13.26 ▲0.03 | 4.92 ▲3.13 | 42.22 ▼3.84 |
Dashboard /wp-admin | 2,257 ▲51 | 6.05 ▲1.20 | 110.83 ▲0.85 | 51.14 ▲9.57 |
Posts /wp-admin/edit.php | 2,140 ▲51 | 2.13 ▲0.16 | 39.84 ▲0.40 | 38.80 ▲2.49 |
Add New Post /wp-admin/post-new.php | 1,555 ▲13 | 23.47 ▲5.15 | 624.01 ▲35.21 | 34.83 ▼19.11 |
Media Library /wp-admin/upload.php | 1,439 ▲54 | 4.22 ▲0.00 | 108.97 ▼3.50 | 42.86 ▼1.03 |
HTML Demos /wp-admin/edit.php?post_type=html_demos | 1,163 | 2.19 | 38.73 | 30.40 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=html_demos | 1,361 | 2.37 | 34.29 | 32.83 |
Add New /wp-admin/post-new.php?post_type=html_demos | 3,085 | 3.38 | 68.83 | 51.43 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% 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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=html_demos
- > Notice in wp-content/plugins/html-demos/html_examples.php+119
Undefined variable: selected
SRP 50% 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/html-demos/html_examples.php:19
- > PHP Fatal error
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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=html_demos
- > Javascript (severe) in unknown
/wp-content/plugins/html-demos/CodeMirror/lib/codemirror.js?ver=6.3.1 2211:29 Uncaught TypeError: Cannot read properties of null (reading 'value')
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
No tags were detected
html-demos/html_examples.php 92% from 13 tests
This is the main PHP file of "HTML Demos" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("html-demos.php" instead of "html_examples.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 plugin29,333 lines of code in 196 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 87 | 1,852 | 1,352 | 18,592 |
HTML | 83 | 1,537 | 26 | 9,727 |
CSS | 21 | 89 | 44 | 679 |
PHP | 1 | 41 | 11 | 154 |
SVG | 1 | 1 | 1 | 151 |
JSON | 1 | 0 | 0 | 21 |
Markdown | 1 | 2 | 0 | 6 |
YAML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 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 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
CodeMirror/doc/baboon.png | 22.75KB | 10.31KB | ▼ 54.68% |