Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼0.46ms] Passed 4 tests
A check of server-side resources used by Cameleon
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 43.65 ▼10.64 |
Dashboard /wp-admin | 3.43 ▲0.13 | 53.96 ▲2.39 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 53.21 ▲5.62 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 94.73 ▲3.31 |
Media Library /wp-admin/upload.php | 3.36 ▲0.12 | 36.32 ▲3.09 |
Skins /wp-admin/edit.php?post_type=skin | 3.40 | 37.20 |
Add New /wp-admin/post-new.php?post_type=skin | 3.42 | 52.97 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Cameleon: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.69 ▲0.40 | 1.58 ▼0.50 | 40.07 ▼5.17 |
Dashboard /wp-admin | 2,225 ▲48 | 5.57 ▲0.04 | 83.87 ▼16.59 | 37.49 ▼4.10 |
Posts /wp-admin/edit.php | 2,124 ▲27 | 2.02 ▲0.07 | 39.00 ▲4.16 | 35.84 ▲0.13 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 22.94 ▲0.03 | 664.54 ▼51.80 | 68.96 ▲9.57 |
Media Library /wp-admin/upload.php | 1,427 ▲33 | 4.21 ▲0.01 | 98.66 ▼18.94 | 42.71 ▼6.10 |
Skins /wp-admin/edit.php?post_type=skin | 1,091 | 1.96 | 31.92 | 29.82 |
Add New /wp-admin/post-new.php?post_type=skin | 1,579 | 2.60 | 52.29 | 48.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cameleon/cameleon.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: plugin, themes, admin
cameleon/cameleon.php Passed 13 tests
The principal PHP file in "Cameleon" v. 1.6.0 is loaded by WordPress automatically on each request
61 characters long description:
Virtual Microsite Creator & Multi-Theme Enabler for WordPress
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
There were no executable files found in this plugin626 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 179 | 447 | 535 |
JavaScript | 1 | 14 | 4 | 68 |
CSS | 1 | 5 | 0 | 23 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 103.00 |
▷ Minimum class complexity | 103.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 4.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 59.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 40.62% |
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
There are no PNG files in this plugin