Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.22ms] Passed 4 tests
Analyzing server-side resources used by Embed Block for GitHub
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.45 ▼1.22 |
Dashboard /wp-admin | 3.34 ▲0.03 | 55.75 ▲1.93 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.19 ▼3.96 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.25 ▼9.61 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.02 ▲4.27 |
Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Embed Block for GitHub
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.23 ▼0.04 | 1.79 ▼0.05 | 42.49 ▼2.76 |
Dashboard /wp-admin | 2,195 ▲24 | 5.51 ▼0.32 | 87.78 ▼12.59 | 38.54 ▼6.55 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.03 ▼0.01 | 34.16 ▼1.79 | 32.94 ▼3.25 |
Add New Post /wp-admin/post-new.php | 6,366 ▲4,840 | 27.79 ▲4.34 | 900.57 ▲258.32 | 63.13 ▲9.21 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▲0.01 | 98.09 ▼7.95 | 63.35 ▲19.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/embed-block-for-github/templates/repository.php:14
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: embed, gutenberg, block, git, gist...
embed-block-for-github/embed-block-for-github.php Passed 13 tests
"Embed Block for GitHub" version 0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
53 characters long description:
Easily embed GitHub repositories in Gutenberg Editor.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected500 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 21 | 21 | 188 |
CSS | 2 | 29 | 0 | 160 |
JavaScript | 1 | 8 | 0 | 90 |
SVG | 5 | 0 | 1 | 62 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 27.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 72.73% |
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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.68MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 13.00KB | 5.24KB | ▼ 59.65% |
assets/screenshot-2.png | 30.56KB | 8.01KB | ▼ 73.78% |
assets/banner-772x250.png | 85.98KB | 27.28KB | ▼ 68.27% |
assets/banner-1544x500.png | 208.37KB | 68.25KB | ▼ 67.24% |
assets/icon-128x128.png | 8.81KB | 3.12KB | ▼ 64.59% |