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.03MB] [CPU: ▼4.14ms] Passed 4 tests
This is a short check of server-side resources used by HTML Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 41.22 ▼1.49 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.26 ▼1.30 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.23 ▼3.84 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.59 ▼9.91 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.79 ▲2.95 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_html-widget |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for HTML Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.17 ▼0.20 | 1.95 ▲0.02 | 45.97 ▼3.84 |
Dashboard /wp-admin | 2,195 ▲15 | 5.57 ▼0.09 | 95.54 ▼0.82 | 43.77 ▼3.06 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.02 ▲0.01 | 37.73 ▲0.96 | 33.47 ▼6.50 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.62 ▲0.42 | 675.02 ▲0.06 | 52.96 ▼3.65 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.19 ▲0.10 | 102.81 ▼15.78 | 45.40 ▼2.60 |
Uninstaller [IO: ▲0.00MB] [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
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_html-widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI ("seothemes.net/support")
html-widget/html-widget.php Passed 13 tests
"HTML Widget" version 0.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
90 characters long description:
Adds a simple HTML Code Widget with syntax highlighting for HTML, CSS and JavaScript code.
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
Good job! No executable or dangerous file extensions detected10,568 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 1,169 | 1,111 | 10,068 |
Sass | 3 | 50 | 1 | 353 |
PHP | 1 | 21 | 80 | 94 |
JSON | 1 | 0 | 0 | 45 |
Markdown | 1 | 6 | 0 | 7 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
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
There are no PNG files in this plugin