Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼9.61ms] Passed 4 tests
An overview of server-side resources used by PlantUML Renderer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 43.82 ▲4.47 |
Dashboard /wp-admin | 3.37 ▲0.02 | 52.81 ▼15.04 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 50.30 ▼7.55 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 86.10 ▼20.20 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.90 ▲4.35 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PlantUML Renderer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲90 | 13.83 ▼0.52 | 8.61 ▲6.85 | 38.75 ▼0.51 |
Dashboard /wp-admin | 2,202 ▲25 | 5.61 ▼0.04 | 90.94 ▲4.99 | 40.21 ▲0.88 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▼0.01 | 38.59 ▼3.99 | 34.14 ▼4.27 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.55 ▲0.55 | 635.98 ▲0.88 | 52.74 ▲1.21 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.20 ▲0.02 | 111.30 ▲8.36 | 48.09 ▲5.86 |
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 did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/plantuml-renderer/public/partials/plantuml-renderer-public-display.php
- > /wp-content/plugins/plantuml-renderer/admin/partials/plantuml-renderer-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
3 plugin tags: plantuml, diagram, shortcode
plantuml-renderer/plantuml-renderer.php Passed 13 tests
The main file in "PlantUML Renderer" v. 0.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
24 characters long description:
Insert PlantUML diagrams
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin253 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 113 | 567 | 247 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 19 | 67.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 32.14% |
Functions | 4 | |
▷ Named functions | 4 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin