Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼5.49ms] Passed 4 tests
Server-side resources used by iThoughts HTML Snippets
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 34.65 ▼8.70 |
Dashboard /wp-admin | 3.50 ▲0.15 | 44.52 ▼11.39 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 46.64 ▼4.22 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 98.63 ▲2.34 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 37.37 ▲3.24 |
Add a HTML Snippet /wp-admin/post-new.php?post_type=html_snippet | 3.47 | 44.93 |
HTML Snippets /wp-admin/edit.php?post_type=html_snippet | 3.46 | 34.98 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by iThoughts HTML Snippets
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲101 | 13.24 ▼1.34 | 1.84 ▼0.01 | 41.13 ▼6.15 |
Dashboard /wp-admin | 2,278 ▲87 | 5.84 ▲0.95 | 101.86 ▼1.36 | 76.06 ▲32.48 |
Posts /wp-admin/edit.php | 2,164 ▲75 | 2.19 ▲0.14 | 39.74 ▼1.86 | 34.04 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,423 ▼96 | 18.57 ▼4.32 | 607.82 ▲18.61 | 62.24 ▲10.96 |
Media Library /wp-admin/upload.php | 1,454 ▲66 | 4.23 ▲0.03 | 111.07 ▲12.42 | 52.84 ▲11.14 |
Add a HTML Snippet /wp-admin/post-new.php?post_type=html_snippet | 1,928 | 3.95 | 72.35 | 107.22 |
HTML Snippets /wp-admin/edit.php?post_type=html_snippet | 1,122 | 2.01 | 31.36 | 29.08 |
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 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'ithoughts\\v1_0\\Singleton' not found in wp-content/plugins/ithoughts-html-snippets/class/Admin.class.php:17
- > PHP Fatal error
Uncaught Error: Class 'ithoughts\\v4_0\\Backbone' not found in wp-content/plugins/ithoughts-html-snippets/class/Backbone.class.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were 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
These attributes need your attention:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
ithoughts-html-snippets/ithoughts_html_snippets.php 92% from 13 tests
The main file in "iThoughts HTML Snippets" v. 1.0.3 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: Please rename the main PHP file in this plugin to the plugin slug ("ithoughts-html-snippets.php" instead of "ithoughts_html_snippets.php")
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
Everything looks great! No dangerous files found in this plugin1,912 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 145 | 521 | 731 |
JavaScript | 12 | 52 | 379 | 606 |
JSON | 2 | 0 | 0 | 239 |
SVG | 2 | 2 | 2 | 170 |
PO File | 2 | 31 | 36 | 105 |
XML | 2 | 0 | 1 | 56 |
Markdown | 1 | 2 | 0 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 21.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 4 | 66.67% |
▷ Concrete classes | 2 | 33.33% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 16 | 30.19% |
▷ Public methods | 48 | 90.57% |
▷ Protected methods | 2 | 3.77% |
▷ Private methods | 3 | 5.66% |
Functions | 1 | |
▷ Named functions | 1 | 100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/icon-tinymce.png | 1.72KB | 1.30KB | ▼ 24.66% |