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.24MB] [CPU: ▼21.13ms] Passed 4 tests
Analyzing server-side resources used by Sir Trevor WP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.49 | 38.05 ▼3.79 |
Dashboard /wp-admin | 3.37 ▼0.02 | 50.94 ▼14.79 |
Posts /wp-admin/edit.php | 3.42 ▲0.02 | 43.85 ▼10.09 |
Add New Post /wp-admin/post-new.php | 4.95 ▼0.98 | 46.84 ▼55.85 |
Media Library /wp-admin/upload.php | 3.29 ▲0.02 | 33.14 ▼1.65 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Sir Trevor WP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.26 ▼0.30 | 1.64 ▼0.14 | 43.77 ▲4.73 |
Dashboard /wp-admin | 2,198 ▲27 | 5.65 ▲0.06 | 91.03 ▲0.18 | 40.56 ▼4.16 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▲0.05 | 36.14 ▼1.05 | 35.06 ▼0.31 |
Add New Post /wp-admin/post-new.php | 6,085 ▲4,557 | 17.55 ▼5.68 | 792.76 ▲155.51 | 61.04 ▲10.84 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.22 ▼0.00 | 96.51 ▼4.29 | 42.33 ▼5.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sir-trevor-wp/block-templates/code.php
- > /wp-content/plugins/sir-trevor-wp/block-templates/image.php
- > /wp-content/plugins/sir-trevor-wp/block-templates/heading.php
- 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: block in wp-content/plugins/sir-trevor-wp/block-templates/video.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sir-trevor-wp/block-templates/code.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Michelf\\Markdown' not found in wp-content/plugins/sir-trevor-wp/block-templates/text.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sir-trevor-wp/sir-trevor-wp.php:23
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sir-trevor-wp/block-templates/video.php on line 2
- > PHP Notice
Undefined variable: block in wp-content/plugins/sir-trevor-wp/block-templates/image.php on line 18
- > PHP Notice
Undefined variable: block in wp-content/plugins/sir-trevor-wp/block-templates/code.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sir-trevor-wp/block-templates/heading.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sir-trevor-wp/block-templates/code.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sir-trevor-wp/block-templates/image.php on line 18
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: editor
sir-trevor-wp/sir-trevor-wp.php Passed 13 tests
The primary PHP file in "Sir Trevor WP" version 1.1.1 is used by WordPress to initiate all plugin functionality
55 characters long description:
An intuitive, block-based content editor for Wordpress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected4,989 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 787 | 281 | 2,462 |
PHP | 9 | 447 | 818 | 2,066 |
CSS | 3 | 81 | 10 | 461 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 55.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 102.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 1 | 50.00% |
▷ Concrete classes | 1 | 50.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 2 | 2.06% |
▷ Public methods | 6 | 6.19% |
▷ Protected methods | 91 | 93.81% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.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
No PNG files were detected