Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.23MB] [CPU: ▼15.64ms] Passed 4 tests
This is a short check of server-side resources used by Simple Code Block
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.83 ▼5.98 |
Dashboard /wp-admin | 3.36 ▲0.01 | 48.32 ▼18.39 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.05 ▼0.14 |
Add New Post /wp-admin/post-new.php | 4.87 ▼1.02 | 52.68 ▼38.04 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 32.23 ▲1.43 |
Server storage [IO: ▲3.71MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Code Block
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▲0.07 | 1.77 ▼0.30 | 45.34 ▲1.26 |
Dashboard /wp-admin | 2,192 ▲18 | 5.62 ▼0.03 | 87.16 ▼12.56 | 36.47 ▼6.40 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.09 | 33.19 ▼5.65 | 35.17 ▼1.24 |
Add New Post /wp-admin/post-new.php | 6,468 ▲4,940 | 29.82 ▲6.68 | 921.72 ▲309.38 | 62.88 ▲8.84 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▼0.04 | 101.48 ▼6.47 | 43.45 ▲0.63 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Unterminated comment starting line 1 in wp-content/plugins/simple-code-block/core/index.php on line 1
- > PHP Warning
Unterminated comment starting line 1 in wp-content/plugins/simple-code-block/index.php on line 1
- > PHP Warning
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: block, gutenberg, ace, syntax highlighting, code...
simple-code-block/simple-code-block.php Passed 13 tests
The main PHP file in "Simple Code Block" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
45 characters long description:
A simple block to insert code into Gutenberg.
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 detected1,157 lines of code in 87 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 76 | 80 | 25 | 949 |
PHP | 6 | 92 | 418 | 191 |
Sass | 3 | 0 | 0 | 17 |
CSS | 2 | 0 | 23 | 0 |
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.25 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 1 | 4.17% |
▷ Public methods | 18 | 75.00% |
▷ Protected methods | 1 | 4.17% |
▷ Private methods | 5 | 20.83% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin