Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.97ms] Passed 4 tests
This is a short check of server-side resources used by Roam Research Block
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.25 ▼2.44 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.36 ▼4.25 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.98 ▲1.50 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.14 ▼6.67 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 37.65 ▲2.55 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Roam Research Block: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲13 | 13.21 ▼0.03 | 1.69 ▼0.11 | 41.44 ▼1.91 |
Dashboard /wp-admin | 2,203 ▼6 | 5.80 ▼0.06 | 95.36 ▲1.16 | 38.87 ▲1.97 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.05 | 40.61 ▲6.68 | 34.46 ▼0.46 |
Add New Post /wp-admin/post-new.php | 6,587 ▲5,068 | 29.31 ▲6.19 | 970.08 ▲355.14 | 64.98 ▲11.56 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▼0.06 | 107.04 ▼2.07 | 45.37 ▼1.56 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
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 everything seems fine, this is not an exhaustive test
SRP 50% 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
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function Artpi\\RoamBlock\\add_action() in wp-content/plugins/roam-block/endpoints.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/roam-block/roam-block.php:68
- > 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
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: block
roam-block/roam-block.php Passed 13 tests
The main PHP file in "Roam Research Block" ver. 0.1.3 adds more information about the plugin and also serves as the entry point for this plugin
66 characters long description:
Embed Roam Blocks or pages in WordPress, just as you would in Roam
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
Good job! No executable or dangerous file extensions detected1,514 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 393 | 140 | 1,461 |
JSON | 2 | 0 | 0 | 31 |
XML | 1 | 2 | 0 | 16 |
JavaScript | 2 | 2 | 9 | 4 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 186.00 |
▷ Minimum class complexity | 186.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 3 | 5.77% |
▷ Public methods | 8 | 15.38% |
▷ Protected methods | 44 | 84.62% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin