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.14MB] [CPU: ▼5.22ms] Passed 4 tests
A check of server-side resources used by Tarot
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 37.38 ▼0.26 |
Dashboard /wp-admin | 3.44 ▲0.14 | 45.42 ▼3.54 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 52.33 ▲3.29 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 82.99 ▼16.50 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.56 ▼0.57 |
tarot /wp-admin/tools.php?page=tarot | 3.36 | 29.00 |
Server storage [IO: ▲7.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 89 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Tarot
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲24 | 14.19 ▼0.16 | 1.48 ▼0.54 | 38.05 ▼2.44 |
Dashboard /wp-admin | 2,199 ▲25 | 5.57 ▲0.04 | 92.71 ▲6.87 | 40.44 ▲1.54 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.00 ▲0.02 | 39.50 ▲0.64 | 37.98 ▲3.49 |
Add New Post /wp-admin/post-new.php | 6,370 ▲4,840 | 27.98 ▲4.73 | 837.62 ▲169.53 | 54.77 ▲0.98 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.19 ▼0.02 | 115.95 ▲8.56 | 43.06 ▼0.39 |
tarot /wp-admin/tools.php?page=tarot | 2,208 | 1.28 | 26.55 | 148.44 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tarot/tarot.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tarot/blocks/tarot.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tested up to: Version not formatted correctly
tarot/tarot.php Passed 13 tests
Analyzing the main PHP file in "Tarot" version 1.0.1
45 characters long description:
A Gutenberg Block allowing Tarot card spreads
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,422 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 68 | 29 | 875 |
JavaScript | 1 | 7 | 1 | 178 |
JSX | 1 | 19 | 2 | 146 |
Sass | 1 | 4 | 0 | 80 |
SVG | 78 | 0 | 0 | 78 |
CSS | 1 | 2 | 2 | 65 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 19 | 100.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
No PNG images were found in this plugin