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.00MB] [CPU: ▼9.98ms] Passed 4 tests
This is a short check of server-side resources used by WP Markdown Editor (Formerly Dark Mode)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.09 | 34.33 ▼11.30 |
Dashboard /wp-admin | 3.51 ▲0.20 | 58.20 ▼0.30 |
Posts /wp-admin/edit.php | 3.55 ▼0.30 | 55.29 ▲2.49 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 82.59 ▼28.47 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 33.73 ▲0.17 |
WP Markdown Editor /wp-admin/options-general.php?page=wp-markdown-settings | 3.36 | 45.21 |
Server storage [IO: ▲0.57MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
wpmde_general |
dark_mode_install_time |
dark_mode_version |
db_upgraded |
wp_markdown_editor_update_notice_interval |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WP Markdown Editor (Formerly Dark Mode)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,126 ▲365 | 15.03 ▲0.72 | 1.87 ▲0.09 | 41.45 ▼6.85 |
Dashboard /wp-admin | 2,540 ▲369 | 6.41 ▲0.81 | 117.74 ▲22.77 | 44.12 ▼1.38 |
Posts /wp-admin/edit.php | 2,448 ▲348 | 3.69 ▲1.67 | 57.65 ▲25.05 | 35.91 ▲2.58 |
Add New Post /wp-admin/post-new.php | 1,680 ▲154 | 23.38 ▲0.65 | 688.91 ▲88.60 | 39.58 ▼5.15 |
Media Library /wp-admin/upload.php | 1,576 ▲176 | 4.50 ▲0.26 | 83.47 ▼15.47 | 44.45 ▲2.92 |
WP Markdown Editor /wp-admin/options-general.php?page=wp-markdown-settings | 1,626 | 3.63 | 54.42 | 79.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 10 options in the database
- wpmde_general
- dark_mode_install_time
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- wp_markdown_editor_update_notice_interval
- widget_recent-comments
- dark_mode_version
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/dark-mode/includes/notices/affiliate-notice.php
- > /wp-content/plugins/dark-mode/includes/notices/review-notice.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/dark-mode/includes/promo.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dark-mode/includes/class-settings.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: markdown, dark, editor, dashboard, markdown editor
dark-mode/dark-mode.php Passed 13 tests
The entry point to "WP Markdown Editor (Formerly Dark Mode)" version 4.1.5 is a PHP file that has certain tags in its header comment area
124 characters long description:
Quickly edit content in WordPress by getting an immersive, peaceful and natural writing experience with the coolest editor..
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
Everything looks great! No dangerous files found in this plugin6,196 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 1,038 | 1,794 | 4,008 |
Sass | 5 | 1,020 | 0 | 1,837 |
SVG | 5 | 0 | 0 | 165 |
CSS | 2 | 13 | 4 | 104 |
JavaScript | 4 | 35 | 12 | 82 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 27.38 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 2 | 15.38% |
Methods | 194 | |
▷ Static methods | 12 | 6.19% |
▷ Public methods | 156 | 80.41% |
▷ Protected methods | 7 | 3.61% |
▷ Private methods | 31 | 15.98% |
Functions | 11 | |
▷ Named functions | 8 | 72.73% |
▷ Anonymous functions | 3 | 27.27% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/timer.png | 2.39KB | 2.37KB | ▼ 0.98% |