Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.69ms] Passed 4 tests
An overview of server-side resources used by WordPress GitHub Sync
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.87 ▼0.30 |
Dashboard /wp-admin | 3.34 ▼0.00 | 45.71 ▼16.27 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 44.60 ▼4.96 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 116.08 ▲18.55 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.42 ▲6.79 |
GitHub Sync /wp-admin/options-general.php?page=wp-github-sync | 3.26 | 36.44 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress GitHub Sync
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲58 | 14.38 ▲0.09 | 1.69 ▼0.06 | 44.48 ▲5.17 |
Dashboard /wp-admin | 2,199 ▲18 | 5.61 ▼0.06 | 88.90 ▼12.68 | 37.86 ▼7.01 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.99 ▼0.03 | 36.75 ▼3.90 | 31.83 ▼5.92 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 22.89 ▼0.18 | 652.14 ▼50.11 | 54.61 ▼1.96 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.24 ▲0.01 | 108.17 ▲6.64 | 45.46 ▼0.44 |
GitHub Sync /wp-admin/options-general.php?page=wp-github-sync | 911 | 2.03 | 23.24 | 31.89 |
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_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-github-sync/vendor/mustangostang/spyc/examples/yaml-load.php
- > /wp-content/plugins/wp-github-sync/vendor/mustangostang/spyc/php4/5to4.php
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WordPress_GitHub_Sync_Base_Client' not found in wp-content/plugins/wp-github-sync/lib/client/persist.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-github-sync/views/setting-field.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-github-sync/views/options.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-github-sync/vendor/mustangostang/spyc/tests/IndentTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Autoload\\AutoloadGenerator' not found in wp-content/plugins/wp-github-sync/vendor/xrstf/composer-php52/lib/xrstf/Composer52/AutoloadGenerator.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-github-sync/wp-github-sync.php:40
- > PHP Warning
file_get_contents(../spyc.php): failed to open stream: No such file or directory in wp-content/plugins/wp-github-sync/vendor/mustangostang/spyc/php4/5to4.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-github-sync/vendor/mustangostang/spyc/tests/LoadTest.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-github-sync/views/user-setting-field.php:1
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-github-sync/vendor/mustangostang/spyc/tests/ParseTest.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: github, git, publishing, collaboration, version control...
wp-github-sync/wp-github-sync.php Passed 13 tests
The entry point to "WordPress GitHub Sync" version 2.0.1 is a PHP file that has certain tags in its header comment area
77 characters long description:
A WordPress plugin to sync content with a GitHub repository (or Jekyll site).
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin5,601 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 1,416 | 2,597 | 4,920 |
PO File | 2 | 100 | 107 | 264 |
YAML | 5 | 72 | 34 | 196 |
JSON | 3 | 0 | 0 | 143 |
Markdown | 2 | 17 | 0 | 50 |
XML | 1 | 0 | 0 | 28 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 20.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 257.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 34 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 34 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 452 | |
▷ Static methods | 19 | 4.20% |
▷ Public methods | 357 | 78.98% |
▷ Protected methods | 44 | 9.73% |
▷ Private methods | 51 | 11.28% |
Functions | 14 | |
▷ Named functions | 12 | 85.71% |
▷ Anonymous functions | 2 | 14.29% |
Constants | 9 | |
▷ Global constants | 1 | 11.11% |
▷ Class constants | 8 | 88.89% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin