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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▲2.85ms] Passed 4 tests
Server-side resources used by Github Embed
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.68 ▲0.72 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.94 ▲5.25 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.01 ▲1.89 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 95.68 ▲7.67 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.47 ▲3.54 |
Server storage [IO: ▲1.31MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
github_oembed_key |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Github Embed
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 14.42 ▲0.04 | 1.82 ▲0.32 | 44.81 ▲4.94 |
Dashboard /wp-admin | 2,200 ▲9 | 4.88 ▼1.06 | 125.62 ▲10.85 | 50.73 ▼0.80 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.02 | 42.89 ▲5.84 | 32.89 ▼2.30 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.33 ▲0.05 | 673.45 ▲71.18 | 55.48 ▲5.96 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.26 ▲0.06 | 110.38 ▲6.09 | 46.39 ▲0.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- github_oembed_key
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/github-embed/templates/repository_milestone_summary.php on line 1
- > PHP Notice
Undefined variable: data in wp-content/plugins/github-embed/templates/repository_milestone_summary.php on line 1
- > PHP Notice
Undefined variable: data in wp-content/plugins/github-embed/templates/repository.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/github-embed/templates/repository.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/github-embed/templates/repository.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/github-embed/templates/author.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/github-embed/templates/repository_milestone_summary.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/github-embed/templates/repository_contributors.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/github-embed/templates/repository_contributors.php:3
- > PHP Notice
Undefined variable: data in wp-content/plugins/github-embed/templates/author.php on line 1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: oembed, embed, github
github-embed/github-embed.php Passed 13 tests
The entry point to "Github Embed" version 2.1.0 is a PHP file that has certain tags in its header comment area
130 characters long description:
Paste the URL to a Github project into your posts or pages, and have the project information pulled in and displayed automatically
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected377 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 61 | 163 | 347 |
CSS | 1 | 4 | 0 | 30 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 65.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 34.78% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 1.27MB with 0.72MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 17.85KB | 7.22KB | ▼ 59.56% |
img/github-logos/octocat.png | 4.52KB | 1.63KB | ▼ 63.88% |
img/github-logos/mark.png | 2.70KB | 1.12KB | ▼ 58.42% |
screenshot-2.png | 4.90KB | 2.77KB | ▼ 43.48% |
banner-772x250.png | 118.46KB | 47.34KB | ▼ 60.04% |