Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼1.17MB] [CPU: ▼47.78ms] Passed 4 tests
Analyzing server-side resources used by Raopress Chat - Firebase Chat for Visitors
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.78 ▼0.68 | 11.16 ▼32.06 |
Dashboard /wp-admin | 2.84 ▼0.46 | 17.24 ▼36.18 |
Posts /wp-admin/edit.php | 2.84 ▼0.51 | 18.37 ▼34.84 |
Add New Post /wp-admin/post-new.php | 2.84 ▼3.05 | 16.15 ▼88.03 |
Media Library /wp-admin/upload.php | 2.84 ▼0.38 | 15.14 ▼23.74 |
Settings /wp-admin/admin.php?page=firebase-chat-settings | 2.84 | 16.39 |
Server storage [IO: ▲4.62MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 1,073 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Raopress Chat - Firebase Chat for Visitors
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,512 ▲726 | 14.80 ▲0.86 | 24.67 ▲22.59 | 25.67 ▼16.50 |
Dashboard /wp-admin | 2,240 ▲69 | 5.58 ▼0.07 | 91.43 ▼4.59 | 46.79 ▼2.89 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 2.19 ▲0.18 | 42.51 ▲5.46 | 42.92 ▲2.24 |
Add New Post /wp-admin/post-new.php | 1,565 ▲38 | 23.45 ▲0.31 | 680.51 ▼7.63 | 49.29 ▲1.06 |
Media Library /wp-admin/upload.php | 1,448 ▲48 | 4.25 ▲0.02 | 110.45 ▲2.73 | 51.05 ▲8.14 |
Settings /wp-admin/admin.php?page=firebase-chat-settings | 1,024 | 2.48 | 48.39 | 31.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/raopress-chat-firebase-chat-for-visitors/public/class-rcfv-public.php+248
Undefined index: ionic
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 28 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=firebase-chat-settings
- > Notice in wp-content/plugins/raopress-chat-firebase-chat-for-visitors/public/class-rcfv-public.php+248
Undefined index: ionic
- 28 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=firebase-chat-settings
- > Notice in wp-content/plugins/raopress-chat-firebase-chat-for-visitors/public/class-rcfv-public.php+251
Undefined index: capacitor
SRP 0% 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 fix the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/raopress-chat-firebase-chat-for-visitors/admin/partials/rcfv-admin-display.php
- > /wp-content/plugins/raopress-chat-firebase-chat-for-visitors/vendor/bin/jp.php
- > /wp-content/plugins/raopress-chat-firebase-chat-for-visitors/vendor/mtdowling/jmespath.php/bin/jp.php
- 462× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/raopress-chat-firebase-chat-for-visitors/vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\GroupHandler' not found in wp-content/plugins/raopress-chat-firebase-chat-for-visitors/vendor/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/raopress-chat-firebase-chat-for-visitors/vendor/guzzlehttp/psr7/src/Uri.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Kreait\\Firebase\\Exception\\FirebaseException' not found in wp-content/plugins/raopress-chat-firebase-chat-for-visitors/vendor/kreait/firebase-php/src/Firebase/DynamicLink/CreateDynamicLink/FailedToCreateDynamicLink.php:14
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/raopress-chat-firebase-chat-for-visitors/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php:28
- > PHP Fatal error
Uncaught Error: Class 'RCFV\\Admin\\Settings\\RCFV_Menu' not found in wp-content/plugins/raopress-chat-firebase-chat-for-visitors/src/Admin/Settings/RCFV_SubMenu.php:4
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/raopress-chat-firebase-chat-for-visitors/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Kreait\\Firebase\\Database\\Query\\Sorter' not found in wp-content/plugins/raopress-chat-firebase-chat-for-visitors/vendor/kreait/firebase-php/src/Firebase/Database/Query/Sorter/OrderByChild.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestFactoryInterface' not found in wp-content/plugins/raopress-chat-firebase-chat-for-visitors/vendor/guzzlehttp/psr7/src/HttpFactory.php:26
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\StreamHandler' not found in wp-content/plugins/raopress-chat-firebase-chat-for-visitors/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
- Screenshots: These screenshots need descriptions #1, #2, #3, #4 in raopress-chat-firebase-chat-for-visitors/assets to your readme.txt
raopress-chat-firebase-chat-for-visitors/raopress-chat.php 85% from 13 tests
The entry point to "Raopress Chat - Firebase Chat for Visitors" version 1.2.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("raopress-chat-firebase-chat-for-visitors.php" instead of "raopress-chat.php")
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 plugin79,042 lines of code in 995 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 870 | 12,583 | 31,871 | 55,990 |
JSON | 40 | 6 | 0 | 7,906 |
Markdown | 49 | 2,188 | 0 | 6,103 |
JavaScript | 13 | 1,084 | 730 | 4,966 |
CSS | 8 | 442 | 253 | 3,556 |
YAML | 6 | 45 | 2 | 184 |
C | 2 | 35 | 70 | 132 |
reStructuredText | 1 | 35 | 29 | 59 |
make | 2 | 17 | 16 | 51 |
m4 | 1 | 11 | 14 | 38 |
C/C++ Header | 1 | 10 | 18 | 25 |
XML | 1 | 2 | 0 | 18 |
Bourne Shell | 1 | 4 | 16 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 7.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 117 | |
Interfaces | 114 | |
Traits | 54 | |
Classes | 658 | |
▷ Abstract classes | 19 | 2.89% |
▷ Concrete classes | 639 | 97.11% |
▷ Final classes | 292 | 45.70% |
Methods | 4,272 | |
▷ Static methods | 545 | 12.76% |
▷ Public methods | 3,388 | 79.31% |
▷ Protected methods | 218 | 5.10% |
▷ Private methods | 666 | 15.59% |
Functions | 361 | |
▷ Named functions | 135 | 37.40% |
▷ Anonymous functions | 226 | 62.60% |
Constants | 477 | |
▷ Global constants | 16 | 3.35% |
▷ Class constants | 461 | 96.65% |
▷ Public constants | 386 | 83.73% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pp.png | 24.63KB | 5.62KB | ▼ 77.19% |
images/attach.png | 1.86KB | 1.83KB | ▼ 1.32% |
images/send.png | 1.26KB | 1.22KB | ▼ 3.03% |
images/close.png | 0.75KB | 0.73KB | ▼ 3.38% |
assets/select2x2.png | 0.64KB | 0.77KB | 0.00% |