Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼0.48ms] Passed 4 tests
Analyzing server-side resources used by Embed Github
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 40.82 ▲0.99 |
Dashboard /wp-admin | 3.47 ▲0.16 | 46.26 ▼3.93 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 50.16 ▲2.51 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 93.22 ▼0.97 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 37.18 ▲1.99 |
Embed Github /wp-admin/admin.php?page=embed-github | 3.35 | 34.87 |
Server storage [IO: ▲1.65MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 57 new files
Database: no new tables, 7 new options
New WordPress options |
---|
ghbpro-redirect |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Embed Github
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲31 | 14.38 ▲0.04 | 1.85 ▼0.07 | 43.95 ▼4.65 |
Dashboard /wp-admin | 2,201 ▲21 | 5.62 ▼0.01 | 91.56 ▼11.58 | 40.65 ▼5.38 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.96 ▼0.03 | 39.65 ▲2.22 | 38.19 ▲2.58 |
Add New Post /wp-admin/post-new.php | 6,373 ▲4,847 | 29.36 ▲5.74 | 886.92 ▲196.38 | 37.39 ▼33.27 |
Media Library /wp-admin/upload.php | 1,406 ▲9 | 4.14 ▼0.07 | 98.95 ▲0.50 | 41.09 ▼2.92 |
Embed Github /wp-admin/admin.php?page=embed-github | 798 | 2.35 | 56.09 | 30.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- ghbpro-redirect
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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
Please take a closer look at the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'BSDK' not found in wp-content/plugins/embed-github/bplugins_sdk/inc/Base/License.php:3
- > PHP Warning
Use of undefined constant GHB_PLUGIN_VERSION - assumed 'GHB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/embed-github/dist/editor.asset.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'BSDK' not found in wp-content/plugins/embed-github/bplugins_sdk/inc/Base/Activate.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Requires at least: Invalid plugin version format
embed-github/index.php 85% from 13 tests
"Embed Github" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("embed-github.php" instead of "index.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
No dangerous file extensions were detected1,587 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 110 | 37 | 510 |
JavaScript | 15 | 71 | 28 | 477 |
JSON | 4 | 0 | 0 | 302 |
Sass | 3 | 11 | 5 | 184 |
PO File | 2 | 39 | 90 | 109 |
CSS | 5 | 0 | 8 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 9.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 3 | 7.50% |
▷ Public methods | 38 | 95.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bplugins_sdk/dist/assets/images/shield_success.png | 3.47KB | 3.61KB | 0.00% |