Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.04ms] Passed 4 tests
Analyzing server-side resources used by Gist Embed
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.41 ▼2.97 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.09 ▼4.69 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.76 ▲5.24 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 84.67 ▼5.18 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.97 ▲0.67 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Gist Embed
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲142 | 13.61 ▼0.38 | 2.58 ▲0.63 | 42.26 ▼3.93 |
Dashboard /wp-admin | 2,279 ▲91 | 5.82 ▲0.93 | 107.40 ▼7.53 | 39.28 ▼7.60 |
Posts /wp-admin/edit.php | 2,166 ▲77 | 2.02 ▲0.02 | 40.24 ▲4.31 | 36.44 ▼1.37 |
Add New Post /wp-admin/post-new.php | 1,595 ▲75 | 17.80 ▼5.44 | 661.30 ▼25.79 | 60.65 ▼1.47 |
Media Library /wp-admin/upload.php | 1,456 ▲68 | 4.24 ▲0.07 | 99.02 ▼9.32 | 43.84 ▼2.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% 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 | 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× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gist-embed/gist-embed.php:69
- > 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 97% 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:
- Screenshots: These screenshots require images: #1 (assets/editor.png), #2 (assets/dialog.png), #3 (assets/example.png)
gist-embed/gist-embed.php Passed 13 tests
The entry point to "Gist Embed" version 0.2 is a PHP file that has certain tags in its header comment area
71 characters long description:
Embeds GIST into your pages, based on jQuery script by Blair Vanderhoof
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin482 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 39 | 59 | 169 |
CSS | 1 | 32 | 0 | 158 |
HTML | 2 | 11 | 0 | 69 |
Markdown | 2 | 19 | 0 | 53 |
PHP | 1 | 9 | 31 | 33 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/editor.png | 18.94KB | 7.91KB | ▼ 58.21% |
assets/dialog.png | 16.67KB | 5.94KB | ▼ 64.38% |
gist-embed.png | 3.31KB | 0.78KB | ▼ 76.60% |
assets/example.png | 47.02KB | 13.96KB | ▼ 70.31% |