Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.42MB] [CPU: ▲7.47ms] Passed 4 tests
A check of server-side resources used by Chameleon
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.58 | 52.67 ▲13.58 |
Dashboard /wp-admin | 3.70 ▲0.40 | 55.56 ▲5.54 |
Posts /wp-admin/edit.php | 3.81 ▲0.46 | 60.06 ▲16.49 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 88.78 ▼5.75 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 54.01 ▲23.22 |
Chameleon /wp-admin/options-general.php?page=wpc | 3.66 | 324.25 |
Server storage [IO: ▲7.63MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 656 new files
Database: no new tables, 8 new options
New WordPress options |
---|
wp_chameleon |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
wp_chameleon_background |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Chameleon
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲157 | 13.68 ▼0.62 | 6.42 ▲4.08 | 37.12 ▼6.88 |
Dashboard /wp-admin | 2,222 ▲34 | 5.00 ▲0.12 | 109.72 ▼7.95 | 41.62 ▼6.18 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.04 ▲0.04 | 43.94 ▲8.33 | 37.94 ▲1.23 |
Add New Post /wp-admin/post-new.php | 1,526 ▲3 | 17.61 ▼5.70 | 666.77 ▲9.69 | 53.53 ▼2.12 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.26 ▲0.04 | 95.39 ▼6.03 | 42.18 ▼1.71 |
Chameleon /wp-admin/options-general.php?page=wpc | 5,057 | 32.45 | 1,006.96 | 156.05 |
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
These items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- wp_chameleon_background
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- wp_chameleon
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=wpc
- > Warning in wp-content/plugins/chameleon/inc/functions.php+1069
copy(https://raw.githubusercontent.com/uxglow/twentytwentyone/master/twentytwentyone-covid19/1.0/thumb.png): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
- > GET request to /wp-admin/options-general.php?page=wpc
- > Warning in wp-content/plugins/chameleon/inc/functions.php+1072
copy(https://raw.githubusercontent.com/uxglow/twentytwentyone/master/twentytwentyone-covid19/1.0/screenshot.png): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/chameleon/templates/nti/shortcode.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function register_sidebar() in wp-content/plugins/chameleon/assets/twentytwentyone/twentytwentyone-covid19/functions/functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/chameleon/templates/nti/nti_styles.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/chameleon/index.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/chameleon/templates/nti/nti_scripts.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/chameleon/inc/functions.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/chameleon/inc/wpc_settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/chameleon/templates/nti/wpch_news_ticker.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: alphabetic, contact, rss feed, form, contact form...
chameleon/index.php 92% from 13 tests
Analyzing the main PHP file in "Chameleon" version 1.4.5
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("chameleon.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected44,686 lines of code in 237 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 133 | 2,685 | 1,537 | 31,440 |
JavaScript | 11 | 1,647 | 1,696 | 7,156 |
HTML | 82 | 631 | 49 | 4,490 |
PHP | 8 | 643 | 223 | 1,390 |
PO File | 3 | 81 | 81 | 210 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 34 | |
▷ Named functions | 32 | 94.12% |
▷ Anonymous functions | 2 | 5.88% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
166 PNG files occupy 4.40MB with 2.54MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/ap/uber/images/screenshot.png | 4.71KB | 4.45KB | ▼ 5.61% |
assets/cs/soon/flags/NI.png | 3.08KB | 0.44KB | ▼ 85.70% |
assets/cs/soon/flags/MX.png | 3.34KB | 0.87KB | ▼ 73.90% |
assets/cs/soon/flags/TD.png | 3.23KB | 0.86KB | ▼ 73.43% |
images/nti_sample.png | 4.94KB | 2.44KB | ▼ 50.57% |