Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.23MB] [CPU: ▼18.56ms] Passed 4 tests
Server-side resources used by Typewriter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.49 | 38.63 ▼7.25 |
Dashboard /wp-admin | 3.34 ▼0.01 | 50.19 ▼18.11 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.64 ▼2.04 |
Add New Post /wp-admin/post-new.php | 4.91 ▼0.97 | 45.07 ▼46.83 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.68 ▲2.31 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Typewriter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,616 ▼170 | 13.79 ▼0.58 | 1.81 ▼0.26 | 46.36 ▲2.93 |
Dashboard /wp-admin | 2,022 ▼155 | 5.42 ▼0.23 | 89.72 ▼9.06 | 45.40 ▲1.56 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.00 ▲0.02 | 35.34 ▼1.07 | 35.27 ▼0.35 |
Add New Post /wp-admin/post-new.php | 6,087 ▲4,561 | 17.42 ▼5.29 | 798.08 ▲162.24 | 72.89 ▲15.97 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.22 ▲0.00 | 109.65 ▲4.16 | 46.49 ▼0.57 |
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
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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 items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/typewriter/includes/markdown/Readme.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Michelf\\Markdown' not found in wp-content/plugins/typewriter/includes/markdown/Michelf/MarkdownExtra.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/typewriter/typewriter.php:19
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Markdown editor with some example content), #2 (Markdown output with some example content)
typewriter/typewriter.php Passed 13 tests
The principal PHP file in "Typewriter" v. 1.0 is loaded by WordPress automatically on each request
93 characters long description:
Typewriter replaces the Visual Editor with a simple Markdown editor for your posts and pages.
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
No dangerous file extensions were detected2,325 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 436 | 790 | 2,048 |
Markdown | 2 | 80 | 0 | 215 |
JSON | 1 | 0 | 0 | 31 |
PO File | 1 | 7 | 7 | 31 |
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.21 |
Average class complexity | 43.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 102.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 103 | |
▷ Static methods | 1 | 0.97% |
▷ Public methods | 13 | 12.62% |
▷ Protected methods | 90 | 87.38% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
2 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 51.34KB | 15.38KB | ▼ 70.04% |
screenshot-2.png | 33.85KB | 10.71KB | ▼ 68.36% |