Benchmarks
Plugin footprint 83% 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.19MB] [CPU: ▼8.60ms] Passed 4 tests
An overview of server-side resources used by WPMarkdownImporter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 44.85 ▲3.90 |
Dashboard /wp-admin | 3.51 ▲0.17 | 50.49 ▼14.47 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 50.56 ▲0.51 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 86.43 ▼18.81 |
Media Library /wp-admin/upload.php | 3.43 ▲0.21 | 35.33 ▼1.62 |
WPMarkdown Importer /wp-admin/tools.php?page=WPMarkdownImporterAdmin | 3.41 | 37.64 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
WPMarkdownImporter_MESSAGES |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
WPMarkdownImporter_URLS_TO_PROCESS |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPMarkdownImporter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.30 ▼1.08 | 4.75 ▲2.82 | 40.92 ▼1.88 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▲0.94 | 108.03 ▲0.59 | 39.52 ▼5.45 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.03 ▼0.01 | 37.39 ▲0.80 | 31.08 ▼7.00 |
Add New Post /wp-admin/post-new.php | 1,536 ▲6 | 23.33 ▲4.83 | 617.69 ▲6.97 | 61.65 ▲6.58 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.20 ▼0.05 | 97.36 ▼5.64 | 45.31 ▲1.71 |
WPMarkdown Importer /wp-admin/tools.php?page=WPMarkdownImporterAdmin | 886 | 2.19 | 25.84 | 32.47 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× 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/wpmarkdownimporter/includes/main.php:418
- > PHP Fatal error
Uncaught Error: Class 'WPMarkdownImporter' not found in wp-content/plugins/wpmarkdownimporter/includes/admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpmarkdownimporter/includes/main.php:418
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 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
1 plugin tags: twitter
wpmarkdownimporter/WPMarkdownImporter.php 92% from 13 tests
The main file in "WPMarkdownImporter" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpmarkdownimporter.php" instead of "WPMarkdownImporter.php")
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
Good job! No executable or dangerous file extensions detected1,526 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 517 | 238 | 1,430 |
Markdown | 2 | 30 | 0 | 56 |
JSON | 1 | 0 | 0 | 18 |
YAML | 1 | 2 | 0 | 14 |
XML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 51.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 4.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 22 | 33.85% |
▷ Public methods | 28 | 43.08% |
▷ Protected methods | 36 | 55.38% |
▷ Private methods | 1 | 1.54% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There are no PNG files in this plugin