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.04MB] [CPU: ▼3.92ms] Passed 4 tests
Analyzing server-side resources used by Chrome App Promoter Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.61 ▼9.38 |
Dashboard /wp-admin | 3.35 ▲0.04 | 44.37 ▼2.79 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.13 ▼2.33 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.28 ▼1.19 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.15 ▼0.23 |
Chrome App ID Settings /wp-admin/options-general.php?page=chromepromo-setting-admin | 3.21 | 31.47 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_chrome_app_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Chrome App Promoter Widget: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲202 | 13.57 ▼0.73 | 12.64 ▲10.47 | 39.56 ▼5.04 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.06 | 107.49 ▼3.02 | 38.49 ▼7.30 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.09 | 37.87 ▼5.71 | 32.21 ▼5.56 |
Add New Post /wp-admin/post-new.php | 1,522 ▼20 | 23.26 ▲4.91 | 645.72 ▲48.13 | 57.28 ▲0.75 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.17 ▼0.16 | 97.93 ▼10.59 | 41.13 ▼7.75 |
Chrome App ID Settings /wp-admin/options-general.php?page=chromepromo-setting-admin | 793 | 2.06 | 25.75 | 27.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_chrome_app_widget
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
- > GET request to /wp-admin/options-general.php?page=chromepromo-setting-admin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=chromepromo-setting-admin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/chrome-app-promote/promotechromeapp.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 19 tag instead of maximum 10
chrome-app-promote/promotechromeapp.php 85% from 13 tests
This is the main PHP file of "Chrome App Promoter Widget" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 610 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("chrome-app-promote.php" instead of "promotechromeapp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected274 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 85 | 49 | 141 |
JavaScript | 1 | 11 | 10 | 93 |
JSON | 1 | 0 | 0 | 25 |
HTML | 1 | 5 | 0 | 15 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
7 PNG files occupy 0.06MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/close.png | 0.46KB | 0.35KB | ▼ 23.84% |
img/defaulticon.png | 3.50KB | 0.99KB | ▼ 71.67% |
img/button_gradient.png | 2.77KB | 0.21KB | ▼ 92.46% |
img/button_click.png | 2.77KB | 0.20KB | ▼ 92.89% |
img/close_hover.png | 3.04KB | 0.33KB | ▼ 89.19% |