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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▲0.67ms] Passed 4 tests
A check of server-side resources used by Terminal Block
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 44.40 ▲7.56 |
Dashboard /wp-admin | 3.32 ▲0.02 | 51.61 ▲6.04 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 42.05 ▼4.36 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 88.61 ▲0.47 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.80 ▲0.54 |
Server storage [IO: ▲1.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Terminal Block
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲70 | 13.26 ▼0.94 | 1.82 ▲0.10 | 40.99 ▲0.32 |
Dashboard /wp-admin | 2,206 ▲14 | 5.90 ▲1.00 | 109.02 ▼2.88 | 45.09 ▲4.74 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.04 | 33.25 ▼2.31 | 34.80 ▲1.30 |
Add New Post /wp-admin/post-new.php | 6,587 ▲5,067 | 29.32 ▲5.94 | 993.91 ▲224.77 | 69.89 ▲10.39 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.19 ▼0.05 | 103.70 ▼4.82 | 46.26 ▼2.02 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/terminal-block/terminal-block.php:20
- > PHP Fatal error
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
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: code, block, blocks, terminal, documentation...
terminal-block/terminal-block.php Passed 13 tests
"Terminal Block" version 0.1.3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
39 characters long description:
Display rich text in a terminal window.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected29,203 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 28,554 |
JavaScript | 8 | 35 | 38 | 526 |
Sass | 2 | 13 | 1 | 96 |
PHP | 2 | 2 | 14 | 16 |
Markdown | 1 | 5 | 0 | 9 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 2 | |
▷ Named functions | 2 | 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
No PNG images were found in this plugin