Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.21MB] [CPU: ▼6.98ms] Passed 4 tests
Analyzing server-side resources used by The Tribal Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 41.33 ▲3.50 |
Dashboard /wp-admin | 3.56 ▲0.22 | 48.92 ▼7.00 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 46.90 ▼0.70 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 81.58 ▼19.07 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 35.74 ▼1.15 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 59 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_recent-posts |
ttt_client_last_check_status |
ttt_client_import_job_start |
widget_recent-comments |
ttt_client_import_return |
widget_theysaidso_widget |
ttt_client_last_checked |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
... |
Browser metrics Passed 4 tests
A check of browser resources used by The Tribal Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.25 ▼0.10 | 1.79 ▲0.24 | 43.72 ▲3.00 |
Dashboard /wp-admin | 2,194 ▲17 | 5.75 ▲0.22 | 92.37 ▲7.26 | 69.69 ▲26.87 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.97 ▼0.01 | 34.14 ▼4.17 | 34.77 ▲1.47 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 21.00 ▼2.87 | 651.44 ▼40.63 | 142.06 ▲74.20 |
Media Library /wp-admin/upload.php | 1,411 ▲8 | 4.10 ▼0.08 | 113.15 ▲16.55 | 90.62 ▲44.31 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/the-tech-tribe/public/partials/the-tribal-plugin-public-display.php
- > /wp-content/plugins/the-tech-tribe/admin/partials/the-tribal-plugin-admin-display.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/the-tech-tribe/admin/partials/dashboard/settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/the-tech-tribe/admin/partials/dashboard/import.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/the-tech-tribe/admin/partials/alerts/alert.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function tttIsKeyActive() in wp-content/plugins/the-tech-tribe/admin/partials/dashboard/main.php:23
- > PHP Notice
Undefined variable: retUpdate in wp-content/plugins/the-tech-tribe/admin/partials/dashboard/main.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/the-tech-tribe/admin/partials/dashboard/api.php:1
- > 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 errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI found ("thetechtribe.com")
- Screenshots: Screenshot #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Screenshots are stored in the /assets directory.) image not found
the-tech-tribe/the-tribal-plugin.php 92% from 13 tests
The main PHP file in "The Tribal Plugin" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("the-tech-tribe.php" instead of "the-tribal-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,661 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 622 | 1,402 | 2,511 |
JavaScript | 3 | 32 | 62 | 116 |
CSS | 3 | 0 | 13 | 34 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 10.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 135 | |
▷ Static methods | 24 | 17.78% |
▷ Public methods | 125 | 92.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 7.41% |
Functions | 38 | |
▷ Named functions | 37 | 97.37% |
▷ Anonymous functions | 1 | 2.63% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/dashicons/logo-white.png | 8.51KB | 0.93KB | ▼ 89.03% |