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.15MB] [CPU: ▼21.51ms] Passed 4 tests
Server-side resources used by Integrate Firebase
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.41 ▼0.05 | 23.98 ▼14.17 |
Dashboard /wp-admin | 3.20 ▼0.11 | 29.49 ▼18.58 |
Posts /wp-admin/edit.php | 3.28 ▼0.08 | 31.39 ▼19.14 |
Add New Post /wp-admin/post-new.php | 5.52 ▼0.37 | 65.18 ▼34.13 |
Media Library /wp-admin/upload.php | 3.23 ▼0.01 | 26.80 ▼9.76 |
Firebase /wp-admin/options-general.php?page=firebase-setting | 3.12 | 26.58 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Integrate Firebase
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,967 ▲232 | 15.99 ▲1.68 | 11.86 ▲10.08 | 37.35 ▼10.43 |
Dashboard /wp-admin | 2,227 ▲36 | 6.25 ▲1.36 | 110.14 ▲4.43 | 42.52 ▼2.48 |
Posts /wp-admin/edit.php | 2,110 ▲18 | 3.35 ▲1.35 | 56.13 ▲16.61 | 36.25 ▼1.85 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 24.11 ▲0.96 | 650.73 ▲55.20 | 35.35 ▼20.17 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 5.66 ▲1.44 | 99.59 ▲0.23 | 42.41 ▼1.59 |
Firebase /wp-admin/options-general.php?page=firebase-setting | 852 | 2.84 | 30.74 | 27.65 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=firebase-setting
- > Notice in wp-content/plugins/integrate-firebase/includes/class.firebase-admin.php+64
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/integrate-firebase/init.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #3 in integrate-firebase/assets to your readme.txt
integrate-firebase/init.php 92% from 13 tests
Analyzing the main PHP file in "Integrate Firebase" version 0.9.1
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("integrate-firebase.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected729 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 82 | 103 | 391 |
JavaScript | 2 | 22 | 14 | 209 |
Markdown | 3 | 91 | 0 | 122 |
CSS | 2 | 1 | 1 | 7 |
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.19 |
Average class complexity | 10.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 30 | 100.00% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
3 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 51.07KB | 20.05KB | ▼ 60.74% |
assets/screenshot-3.png | 31.43KB | 15.61KB | ▼ 50.34% |
assets/screenshot-2.png | 24.11KB | 12.12KB | ▼ 49.71% |