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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▲3.66ms] Passed 4 tests
An overview of server-side resources used by RichText Extension
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 56.65 ▲15.70 |
Dashboard /wp-admin | 3.51 ▲0.21 | 48.74 ▼2.55 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 50.30 ▲3.33 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 102.45 ▲8.10 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 38.08 ▲5.74 |
RichText Extension /wp-admin/options-general.php?page=richtext-extension-option | 3.42 | 42.64 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by RichText Extension
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲10 | 14.35 ▲0.11 | 1.84 ▼0.16 | 43.00 ▼1.18 |
Dashboard /wp-admin | 2,199 ▲22 | 5.56 ▼0.01 | 93.44 ▲6.21 | 42.07 ▲1.30 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.03 ▲0.04 | 39.34 ▼0.02 | 35.53 ▼0.95 |
Add New Post /wp-admin/post-new.php | 1,696 ▲170 | 22.09 ▼1.16 | 647.38 ▼12.41 | 62.32 ▲6.75 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.15 ▼0.01 | 91.61 ▼16.50 | 43.38 ▼0.81 |
RichText Extension /wp-admin/options-general.php?page=richtext-extension-option | 2,173 | 3.17 | 65.60 | 42.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
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)
Good news, no errors were detected
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
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function richtext_extension\\add_action() in wp-content/plugins/richtext-extension/inc/class-options.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function richtext_extension\\add_action() in wp-content/plugins/richtext-extension/inc/class-enqueue.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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
4 plugin tags: gutenberg, highlighter, formatting, rich text
richtext-extension/richtext-extension.php Passed 13 tests
Analyzing the main PHP file in "RichText Extension" version 2.4.0
73 characters long description:
Adds useful decoration features to the Gutenberg RichText editor toolbar.
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
Success! There were no dangerous files found in this plugin986 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 85 | 170 | 628 |
JavaScript | 8 | 25 | 33 | 197 |
Sass | 1 | 33 | 0 | 160 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 25 | |
▷ Static methods | 5 | 20.00% |
▷ Public methods | 22 | 88.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 12.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 5 | 71.43% |
▷ Class constants | 2 | 28.57% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin