Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.35MB] [CPU: ▼16.24ms] Passed 4 tests
This is a short check of server-side resources used by Verify ID Tokens | Firebase
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.35 | 36.99 ▼2.83 |
Dashboard /wp-admin | 3.66 ▲0.36 | 45.63 ▼3.13 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 49.29 ▼1.15 |
Add New Post /wp-admin/post-new.php | 3.47 ▼2.41 | 34.37 ▼57.86 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 46.42 ▲8.33 |
Server storage [IO: ▲0.97MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 244 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Verify ID Tokens | Firebase
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.22 ▼1.36 | 4.25 ▲2.15 | 45.10 ▼5.31 |
Dashboard /wp-admin | 2,206 ▲21 | 5.79 ▼0.10 | 103.27 ▼12.48 | 38.35 ▼5.45 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.01 | 38.94 ▲0.72 | 35.51 ▼2.23 |
Add New Post /wp-admin/post-new.php | 1,541 ▲27 | 23.33 ▲5.82 | 661.68 ▼42.66 | 63.39 ▲9.42 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▼0.10 | 112.15 ▼1.93 | 47.99 ▼0.13 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 100× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Lcobucci\\JWT\\Signer\\BaseSigner' not found in wp-content/plugins/verify-id-tokens-firebase/vendor/lcobucci/jwt/src/Signer/Ecdsa.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/verify-id-tokens-firebase/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/verify-id-tokens-firebase/vendor/lcobucci/jwt/test/unit/TokenTest.php:21
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/verify-id-tokens-firebase/vendor/guzzlehttp/promises/src/TaskQueue.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/verify-id-tokens-firebase/vendor/lcobucci/jwt/test/unit/ParserTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Lcobucci\\JWT\\Claim\\Basic' not found in wp-content/plugins/verify-id-tokens-firebase/vendor/lcobucci/jwt/src/Claim/EqualsTo.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/verify-id-tokens-firebase/vendor/guzzlehttp/psr7/src/FnStream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\SimpleCache\\CacheException' not found in wp-content/plugins/verify-id-tokens-firebase/vendor/psr/simple-cache/src/InvalidArgumentException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Firebase\\Auth\\Token\\Domain\\Generator' not found in wp-content/plugins/verify-id-tokens-firebase/vendor/kreait/firebase-tokens/src/Handler.php:12
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/verify-id-tokens-firebase/vendor/guzzlehttp/promises/src/AggregateException.php:7
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== verify-id-tokens-firebase ===
)
verify-id-tokens-firebase/verify-id-tokens.php 85% from 13 tests
"Verify ID Tokens | Firebase" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("verify-id-tokens-firebase.php" instead of "verify-id-tokens.php")
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 detected16,019 lines of code in 214 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 180 | 2,688 | 8,820 | 11,570 |
Markdown | 17 | 1,151 | 0 | 3,480 |
JSON | 11 | 0 | 0 | 822 |
YAML | 3 | 7 | 0 | 89 |
XML | 2 | 6 | 0 | 49 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 25 | |
Traits | 3 | |
Classes | 137 | |
▷ Abstract classes | 4 | 2.92% |
▷ Concrete classes | 133 | 97.08% |
▷ Final classes | 14 | 10.53% |
Methods | 1,036 | |
▷ Static methods | 69 | 6.66% |
▷ Public methods | 882 | 85.14% |
▷ Protected methods | 14 | 1.35% |
▷ Private methods | 140 | 13.51% |
Functions | 144 | |
▷ Named functions | 57 | 39.58% |
▷ Anonymous functions | 87 | 60.42% |
Constants | 126 | |
▷ Global constants | 1 | 0.79% |
▷ Class constants | 125 | 99.21% |
▷ Public constants | 125 | 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
No PNG images were found in this plugin