Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/bbp-markdown/lib/Markdown.php+948
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.60MB] [CPU: ▼50.19ms] Passed 4 tests
An overview of server-side resources used by bbP Markdown
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.40 ▼1.07 | 5.83 ▼30.32 |
Dashboard /wp-admin | 2.42 ▼0.89 | 7.23 ▼43.30 |
Posts /wp-admin/edit.php | 2.42 ▼0.94 | 7.41 ▼39.48 |
Add New Post /wp-admin/post-new.php | 2.42 ▼3.47 | 7.30 ▼87.65 |
Media Library /wp-admin/upload.php | 2.42 ▼0.82 | 5.73 ▼29.59 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for bbP Markdown
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.68 ▲0.33 | 1.60 ▼0.38 | 40.28 ▼5.24 |
Dashboard /wp-admin | 2,198 ▲18 | 5.56 ▼0.12 | 91.21 ▲6.72 | 38.51 ▼0.24 |
Posts /wp-admin/edit.php | 2,082 ▼21 | 2.01 ▲0.02 | 35.04 ▼6.75 | 34.99 ▼1.49 |
Add New Post /wp-admin/post-new.php | 1,534 ▼1 | 18.15 ▼0.30 | 624.33 ▼17.72 | 70.16 ▼0.77 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.19 ▲0.02 | 100.22 ▼3.64 | 42.19 ▼0.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/bbp-markdown/lib/Markdown.php+948
Array and string offset access syntax with curly braces is deprecated
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Interface 'Michelf\\MarkdownInterface' not found in wp-content/plugins/bbp-markdown/lib/Markdown.php:16
- > PHP Fatal error
Uncaught Error: Class 'Michelf\\Markdown' not found in wp-content/plugins/bbp-markdown/lib/MarkdownExtra.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bbp-markdown/bbp-markdown.php:26
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in bbp-markdown/assets to your readme.txt
bbp-markdown/bbp-markdown.php Passed 13 tests
"bbP Markdown" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
49 characters long description:
Elegant Markdown support for your bbPress forums.
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin2,799 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 482 | 1,311 | 2,352 |
CSS | 3 | 47 | 1 | 247 |
JavaScript | 2 | 62 | 59 | 130 |
PO File | 1 | 26 | 27 | 70 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 65.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 3.01 |
▷ 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 | 20 | |
▷ Named functions | 19 | 95.00% |
▷ Anonymous functions | 1 | 5.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin