Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.22MB] [CPU: ▼1.33ms] Passed 4 tests
This is a short check of server-side resources used by Just Writing
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 41.34 ▲2.39 |
Dashboard /wp-admin | 3.52 ▲0.22 | 47.68 ▼0.93 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 50.86 ▲5.88 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 86.49 ▼8.51 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 36.78 ▲1.74 |
Just Writing /wp-admin/options-general.php?page=just-writing.4.5.php | 3.41 | 32.22 |
Server storage [IO: ▲1.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 7 new options
New WordPress options |
---|
just_writing_plugin_version |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Just Writing
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.24 ▼1.33 | 1.95 ▲0.04 | 41.30 ▼0.28 |
Dashboard /wp-admin | 2,210 ▲19 | 5.83 ▲0.91 | 94.58 ▼8.97 | 37.70 ▼0.20 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.04 | 35.66 ▼0.70 | 34.33 ▲1.80 |
Add New Post /wp-admin/post-new.php | 1,538 ▲18 | 23.24 ▲0.10 | 664.19 ▲3.66 | 74.44 ▲11.54 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.17 ▼0.01 | 91.80 ▼3.52 | 41.90 ▲0.19 |
Just Writing /wp-admin/options-general.php?page=just-writing.4.5.php | 965 | 1.93 | 34.29 | 45.18 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- just_writing_plugin_version
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
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 items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/just-writing/ToolStack-WP-Utilities.class.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/just-writing/just-writing-install.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/just-writing/4.5/just-writing.4.5.php:351
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/just-writing/4.3/just-writing.4.3.php:351
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/just-writing/4.1/just-writing.4.1.php:351
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: admin posts writing dfw
just-writing/just-writing.php Passed 13 tests
Analyzing the main PHP file in "Just Writing" version 3.9.1
67 characters long description:
Adds more buttons to the distraction free writing mode command bar.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin11,290 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 706 | 989 | 5,503 |
JavaScript | 10 | 798 | 943 | 3,498 |
CSS | 9 | 432 | 150 | 2,289 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 60.00 |
▷ Minimum class complexity | 60.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 96.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.70% |
Functions | 86 | |
▷ Named functions | 86 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/JustWritingPen.png | 0.82KB | 0.81KB | ▼ 1.43% |
images/just-writing-icons.png | 2.99KB | 1.66KB | ▼ 44.48% |
images/logo-250.png | 83.45KB | 29.95KB | ▼ 64.11% |