Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.38MB] [CPU: ▼16.04ms] Passed 4 tests
This is a short check of server-side resources used by Gitdown: Git Repository to WordPress Blog Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 40.75 ▼0.36 |
Dashboard /wp-admin | 3.64 ▲0.34 | 52.90 ▲2.13 |
Posts /wp-admin/edit.php | 4.96 ▲1.61 | 1,091.59 ▲1,036.79 |
Add New Post /wp-admin/post-new.php | 3.45 ▼2.43 | 36.66 ▼69.42 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 41.32 ▲3.48 |
Server storage [IO: ▲2.06MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- You have illegally modified 2 files (4.00KB) outside of "wp-content/plugins/gitdown/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_-/.empty
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 489 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
mgd_repo_setting |
mgd_resolver_setting |
can_compress_scripts |
widget_recent-comments |
mgd_glob_setting |
mgd_cron_setting |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Gitdown: Git Repository to WordPress Blog Posts: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,895 ▲134 | 13.61 ▼0.78 | 1.55 ▼0.24 | 40.94 ▼0.84 |
Dashboard /wp-admin | 2,295 ▲89 | 5.41 ▼0.49 | 143.64 ▲41.35 | 44.56 ▲2.18 |
Posts /wp-admin/edit.php | 2,195 ▲95 | 2.65 ▲0.66 | 39.53 ▼3.80 | 50.11 ▲13.69 |
Add New Post /wp-admin/post-new.php | 1,701 ▲156 | 22.77 ▼0.38 | 653.08 ▼38.17 | 31.88 ▼20.45 |
Media Library /wp-admin/upload.php | 1,481 ▲81 | 4.72 ▲0.54 | 106.56 ▲1.89 | 42.32 ▼4.31 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/gitdown/templates/settings/head.php
- > /wp-content/plugins/gitdown/gitdown.php
- 269× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'League\\CommonMark\ode\\Inline\\AbstractStringContainer' not found in wp-content/plugins/gitdown/vendor/league/commonmark/src/Extension/CommonMark/Node/Inline/Code.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\EventDispatcher\\StoppableEventInterface' not found in wp-content/plugins/gitdown/vendor/league/commonmark/src/Event/AbstractEvent.php:30
- > PHP Fatal error
Trait 'Nette\\SmartObject' not found in wp-content/plugins/gitdown/vendor/nette/utils/src/Utils/ArrayList.php on line 19
- > PHP Fatal error
Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/gitdown/vendor/league/commonmark/src/Output/RenderedContentInterface.php:18
- > PHP Fatal error
Uncaught Error: Interface 'League\\CommonMark\\Delimiter\\Processor\\DelimiterProcessorInterface' not found in wp-content/plugins/gitdown/vendor/league/commonmark/src/Extension/Strikethrough/StrikethroughDelimiterProcessor.php:20
- > PHP Fatal error
Uncaught Error: Interface 'League\\CommonMark\\Reference\\ReferenceInterface' not found in wp-content/plugins/gitdown/vendor/league/commonmark/src/Reference/Reference.php:22
- > PHP Fatal error
Uncaught Error: Interface 'League\\CommonMark\\Extension\\ConfigurableExtensionInterface' not found in wp-content/plugins/gitdown/vendor/league/commonmark/src/Extension/InlinesOnly/InlinesOnlyExtension.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/gitdown/templates/articles.php:4
- > PHP Fatal error
Uncaught Error: Interface 'League\\CommonMark\\Renderer\\DocumentRendererInterface' not found in wp-content/plugins/gitdown/vendor/league/commonmark/src/Renderer/HtmlRenderer.php:28
- > PHP Fatal error
Uncaught Error: Interface 'League\\CommonMark\\Renderer\odeRendererInterface' not found in wp-content/plugins/gitdown/vendor/league/commonmark/src/Extension/CommonMark/Renderer/Inline/LinkRenderer.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add a description for screenshot #5 in gitdown/assets to your readme.txt
gitdown/gitdown.php Passed 13 tests
The principal PHP file in "Gitdown: Git Repository to WordPress Blog Posts" v. 1.6.0 is loaded by WordPress automatically on each request
101 characters long description:
Use this Plugin to create, update, delete and manage markdown articles hosted on a remote repository.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin37,553 lines of code in 468 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 432 | 6,552 | 9,379 | 20,879 |
JavaScript | 4 | 156 | 1,979 | 14,288 |
Markdown | 18 | 466 | 0 | 1,274 |
JSON | 1 | 0 | 0 | 899 |
SVG | 4 | 0 | 1 | 75 |
CSS | 2 | 8 | 0 | 54 |
YAML | 4 | 11 | 0 | 54 |
XML | 1 | 2 | 3 | 16 |
make | 1 | 3 | 0 | 12 |
INI | 1 | 0 | 0 | 2 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 130)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 8.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 299.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 130.00 |
Code structure | ||
---|---|---|
Namespaces | 98 | |
Interfaces | 63 | |
Traits | 3 | |
Classes | 344 | |
▷ Abstract classes | 7 | 2.03% |
▷ Concrete classes | 337 | 97.97% |
▷ Final classes | 234 | 69.44% |
Methods | 1,650 | |
▷ Static methods | 343 | 20.79% |
▷ Public methods | 1,468 | 88.97% |
▷ Protected methods | 11 | 0.67% |
▷ Private methods | 171 | 10.36% |
Functions | 101 | |
▷ Named functions | 35 | 34.65% |
▷ Anonymous functions | 66 | 65.35% |
Constants | 185 | |
▷ Global constants | 6 | 3.24% |
▷ Class constants | 179 | 96.76% |
▷ Public constants | 152 | 84.92% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.26MB with 0.16MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/how_to/managing.png | 164.53KB | 64.60KB | ▼ 60.73% |
templates/how_to/github-copy-repo-url.png | 102.02KB | 35.50KB | ▼ 65.20% |