Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/github-readme/Michelf/Markdown.php+800
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.68MB] [CPU: ▼55.50ms] Passed 4 tests
An overview of server-side resources used by Github README
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.30 ▼1.16 | 5.86 ▼40.59 |
Dashboard /wp-admin | 2.32 ▼0.98 | 7.13 ▼49.25 |
Posts /wp-admin/edit.php | 2.32 ▼1.03 | 6.56 ▼43.23 |
Add New Post /wp-admin/post-new.php | 2.32 ▼3.56 | 8.34 ▼88.94 |
Media Library /wp-admin/upload.php | 2.32 ▼0.90 | 5.96 ▼28.78 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Github README: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.37 ▲0.19 | 2.23 ▲0.19 | 42.37 ▼3.61 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▲0.04 | 89.29 ▼15.03 | 41.22 ▼0.28 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.99 ▼0.00 | 34.38 ▼2.96 | 37.41 ▲2.32 |
Add New Post /wp-admin/post-new.php | 1,528 ▼7 | 23.39 ▲5.35 | 656.07 ▲14.79 | 52.77 ▼11.62 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.20 ▼0.01 | 98.69 ▼1.61 | 44.27 ▲1.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/github-readme/Michelf/Markdown.php+800
Array and string offset access syntax with curly braces is deprecated
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% 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 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 fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Michelf\\Markdown' not found in wp-content/plugins/github-readme/Michelf/MarkdownExtra.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Michelf\\MarkdownInterface' not found in wp-content/plugins/github-readme/Michelf/Markdown.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/github-readme/github-readme.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (Example of the plugin in action on my blog: http://jason.stallin.gs/projects/marknote/) image not found
github-readme/github-readme.php Passed 13 tests
"Github README" version 0.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
110 characters long description:
Github README is a plugin that allows you to embed a GitHub README in a page or post using a simple shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,142 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 479 | 890 | 2,142 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 63.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 2 | 2.04% |
▷ Public methods | 6 | 6.12% |
▷ Protected methods | 92 | 93.88% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected