Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.73ms] 75% from 4 tests
This is a short check of server-side resources used by Better Editor - The dead simple inline editor toolbar (WYSIWYG editor)
Please fix the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 2,503.13ms on /wp-admin/options-general.php?page=gigamediumeditor_settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.87 ▼3.84 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.21 ▼4.12 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 53.80 ▲7.71 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.22 ▼7.11 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.89 ▲0.16 |
Better Editor /wp-admin/options-general.php?page=gigamediumeditor_settings | 3.20 | 2,503.13 |
Server storage [IO: ▲0.71MB] [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: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Better Editor - The dead simple inline editor toolbar (WYSIWYG editor)
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲178 | 14.26 ▼0.15 | 8.73 ▲6.67 | 44.49 ▼7.65 |
Dashboard /wp-admin | 2,221 ▲33 | 5.19 ▲0.31 | 103.05 ▼3.24 | 39.14 ▼4.38 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.31 ▲0.26 | 40.20 ▲4.23 | 34.78 ▲2.11 |
Add New Post /wp-admin/post-new.php | 1,528 ▲8 | 23.24 ▲0.26 | 591.09 ▼80.25 | 33.53 ▼21.37 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.40 ▲0.29 | 95.12 ▼8.87 | 43.15 ▼1.27 |
Better Editor /wp-admin/options-general.php?page=gigamediumeditor_settings | 982 | 1.94 | 27.57 | 33.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
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 | 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
- 7× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/better-editor/index.php
- > /wp-content/plugins/better-editor/includes/images/index.php
- > /wp-content/plugins/better-editor/includes/css/themes/index.php
- > /wp-content/plugins/better-editor/includes/css/index.php
- > /wp-content/plugins/better-editor/includes/admin.php
- > /wp-content/plugins/better-editor/includes/index.php
- > /wp-content/plugins/better-editor/includes/js/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
better-editor/index.php 77% from 13 tests
This is the main PHP file of "Better Editor - The dead simple inline editor toolbar (WYSIWYG editor)" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("better-editor.php" instead of "index.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
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
There were no executable files found in this plugin1,265 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 17 | 54 | 11 | 943 |
PHP | 3 | 36 | 30 | 214 |
JavaScript | 2 | 6 | 6 | 108 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/pluginsclub_logo_black.png | 22.36KB | 10.65KB | ▼ 52.36% |