Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/markdown-for-p2/markdown-extra.php+925
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼2.08MB] [CPU: ▼346.35ms] Passed 4 tests
Analyzing server-side resources used by Markdown for P2
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.29 ▼1.22 | 4.99 ▼48.78 |
Dashboard /wp-admin | 2.31 ▼1.10 | 4.96 ▼28.98 |
Posts /wp-admin/edit.php | 2.31 ▼1.33 | 5.29 ▼32.25 |
Add New Post /wp-admin/post-new.php | 2.31 ▼4.66 | 5.12 ▼1,275.39 |
Media Library /wp-admin/upload.php | 2.31 ▼0.98 | 4.32 ▼20.85 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Markdown for P2
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 15.90 ▼0.09 | 6.43 ▲0.39 | 2.51 ▲0.30 |
Dashboard /wp-admin | 2,895 ▲34 | 5.96 ▼0.35 | 117.18 ▼18.87 | 157.06 ▼8.38 |
Posts /wp-admin/edit.php | 2,688 ▼3 | 3.24 ▼0.00 | 64.92 ▲0.44 | 137.99 ▼6.67 |
Add New Post /wp-admin/post-new.php | 1,661 ▼0 | 16.53 ▼0.07 | 410.31 ▼28.78 | 160.08 ▼0.21 |
Media Library /wp-admin/upload.php | 1,689 ▼9 | 5.47 ▲0.00 | 142.11 ▲5.47 | 189.89 ▼3.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/markdown-for-p2/markdown-extra.php+925
Array and string offset access syntax with curly braces is deprecated
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/markdown-for-p2/markdown-for-p2.php:45
- > 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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: formatting, markdown, comments, p2
markdown-for-p2/markdown-for-p2.php Passed 13 tests
Analyzing the main PHP file in "Markdown for P2" version 0.1.1
97 characters long description:
Markdown for P2 will enable Markdown formatting within your P2 theme status updates and comments.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,755 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 423 | 797 | 1,755 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 46.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 87 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin