Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼140.46ms] Passed 4 tests
This is a short check of server-side resources used by Parsedown Importer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.03 ▲0.30 | 40.27 ▲8.68 |
Dashboard /wp-admin | 3.31 ▲0.25 | 42.44 ▼4.56 |
Posts /wp-admin/edit.php | 3.36 ▲0.24 | 49.30 ▲8.50 |
Add New Post /wp-admin/post-new.php | 5.61 ▲0.17 | 90.45 ▼566.70 |
Media Library /wp-admin/upload.php | 3.19 ▲0.18 | 35.27 ▲0.93 |
Parsedown Import /wp-admin/tools.php?page=pdi-page | 3.16 | 34.46 |
Server storage [IO: ▲2.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 134 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Parsedown Importer: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲112 | 15.86 ▲0.32 | 8.60 ▼0.82 | 48.33 ▲0.98 |
Dashboard /wp-admin | 2,969 ▲35 | 5.94 ▲0.04 | 157.67 ▲8.85 | 114.44 ▼14.18 |
Posts /wp-admin/edit.php | 2,744 ▲8 | 2.68 ▼0.02 | 69.00 ▲4.21 | 90.61 ▼12.82 |
Add New Post /wp-admin/post-new.php | 1,686 ▲105 | 18.84 ▲2.35 | 381.48 ▼56.55 | 122.00 ▼33.27 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.01 ▼0.03 | 160.66 ▼11.84 | 127.90 ▼21.46 |
Parsedown Import /wp-admin/tools.php?page=pdi-page | 1,174 | 2.32 | 61.40 | 82.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/parsedown-importer/pdi.php:34
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/parsedown-importer/tests/bootstrap.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/parsedown-importer/tests/test-sample.php:11
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/parsedown-importer/tests/bootstrap.php on line 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
4 plugin tags: posts, admin, pages, importer
parsedown-importer/pdi.php 77% from 13 tests
Analyzing the main PHP file in "Parsedown Importer" version 1.0.8
The following require your attention:
- Domain Path: The domain path folder was not found ("/languages")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("parsedown-importer.php" instead of "pdi.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin21,791 lines of code in 116 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 13 | 27 | 7,344 |
LESS | 71 | 1,175 | 1,542 | 5,590 |
JavaScript | 23 | 1,291 | 657 | 4,056 |
JSON | 4 | 0 | 0 | 2,890 |
PHP | 5 | 393 | 185 | 1,341 |
SVG | 1 | 0 | 0 | 288 |
Bourne Shell | 1 | 21 | 7 | 99 |
Markdown | 2 | 53 | 0 | 94 |
YAML | 1 | 11 | 16 | 55 |
XML | 2 | 2 | 0 | 22 |
Bourne Again Shell | 1 | 5 | 0 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 47.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 4.41 |
▷ 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 | 54 | |
▷ Static methods | 1 | 1.85% |
▷ Public methods | 15 | 27.78% |
▷ Protected methods | 38 | 70.37% |
▷ Private methods | 1 | 1.85% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin