Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.20ms] Passed 4 tests
A check of server-side resources used by GitHub Repository Shortcode
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.94 ▲3.46 |
Dashboard /wp-admin | 3.33 ▼0.01 | 44.17 ▼15.13 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.20 ▲0.09 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 80.37 ▼17.20 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.26 ▲3.43 |
F13 GitHub Repo Shortcode /wp-admin/options-general.php?page=f13-github-repo-shortcode | 3.22 | 32.16 |
Server storage [IO: ▲1.58MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
GitHub Repository Shortcode: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.78 ▲0.41 | 1.74 ▲0.06 | 44.33 ▲4.30 |
Dashboard /wp-admin | 2,210 ▲28 | 5.75 ▲0.86 | 103.63 ▲1.59 | 38.22 ▼3.67 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▼0.01 | 39.72 ▲5.81 | 35.20 ▲5.12 |
Add New Post /wp-admin/post-new.php | 1,517 ▼26 | 17.52 ▼0.77 | 666.39 ▲19.16 | 63.73 ▲14.15 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▼0.03 | 97.21 ▼0.85 | 43.71 ▼8.57 |
F13 GitHub Repo Shortcode /wp-admin/options-general.php?page=f13-github-repo-shortcode | 854 | 2.03 | 24.16 | 25.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/f13-github-repo-shortcode/wp-github-repo-shortcode.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Screenshot #1 (An example showing the results of the shortcode [gitrepo author="wordpress" repo="wordpress"]) image not found
- Plugin Name: Please specify the plugin name on the first line (
=== f13-github-repo-shortcode ===
)
f13-github-repo-shortcode/wp-github-repo-shortcode.php 92% from 13 tests
The principal PHP file in "GitHub Repository Shortcode" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("f13-github-repo-shortcode.php" instead of "wp-github-repo-shortcode.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin330 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 101 | 204 |
CSS | 1 | 11 | 2 | 85 |
Markdown | 1 | 18 | 0 | 41 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 8 | |
▷ Named functions | 8 | 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 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
4 PNG files occupy 1.53MB with 1.18MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 286.25KB | 97.03KB | ▼ 66.10% |
img/git_logo.png | 2.96KB | 1.52KB | ▼ 48.85% |
img/banner.png | 638.00KB | 21.34KB | ▼ 96.66% |
img/git_banner.png | 641.13KB | 29.10KB | ▼ 95.46% |