Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲1.05MB] [CPU: ▲4.53ms] Passed 4 tests
A check of server-side resources used by STAX Header Builder
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.53 ▲1.07 | 47.31 ▲6.39 |
Dashboard /wp-admin | 4.35 ▲1.05 | 55.69 ▲6.65 |
Posts /wp-admin/edit.php | 4.42 ▲1.06 | 63.40 ▲9.37 |
Add New Post /wp-admin/post-new.php | 6.94 ▲1.05 | 99.69 ▲2.17 |
Media Library /wp-admin/upload.php | 4.28 ▲1.05 | 40.45 ▲2.92 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 4.62 | 39.35 |
Server storage [IO: ▲15.18MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 331 new files
Database: 8 new tables, 12 new options
New tables |
---|
wp_stax_columns |
wp_stax_templates |
wp_stax_components |
wp_stax_container_viewport |
wp_stax_zones |
wp_stax_elements |
wp_stax_containers |
wp_stax_container_items |
New WordPress options |
---|
stax-render-status |
widget_theysaidso_widget |
stax-version |
theysaidso_admin_options |
widget_recent-posts |
fs_gdpr |
fs_accounts |
can_compress_scripts |
fs_active_plugins |
fs_debug_mode |
... |
Browser metrics Passed 4 tests
STAX Header Builder: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,995 ▲209 | 13.57 ▼0.64 | 14.93 ▲12.95 | 28.99 ▼16.67 |
Dashboard /wp-admin | 2,225 ▲51 | 5.54 ▼0.15 | 83.95 ▼4.24 | 85.89 ▲41.29 |
Posts /wp-admin/edit.php | 2,150 ▲50 | 2.03 ▲0.03 | 39.63 ▲4.32 | 36.68 ▲2.11 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 23.12 ▲0.14 | 693.19 ▲19.76 | 78.17 ▲18.16 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.14 ▼0.07 | 101.94 ▼4.34 | 77.64 ▲32.01 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,085 | 1.66 | 25.45 | 25.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
- > Notice in wp-content/plugins/stax/core/lib/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 10 options
- fs_gdpr
- fs_accounts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- fs_active_plugins
- widget_recent-comments
- fs_debug_mode
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant STAX_VERSION - assumed 'STAX_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/stax/core/admin/index.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function home_url() in wp-content/plugins/stax/core/admin/index.php:22
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
stax/index.php 92% from 13 tests
The main PHP script in "STAX Header Builder" version 1.3.6 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("stax.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin102,171 lines of code in 229 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 169 | 9,202 | 19,071 | 62,449 |
CSS | 21 | 3,568 | 4,547 | 27,962 |
SVG | 20 | 0 | 0 | 9,898 |
JavaScript | 17 | 334 | 190 | 1,621 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 49.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 100 | |
▷ Abstract classes | 2 | 2.00% |
▷ Concrete classes | 98 | 98.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,516 | |
▷ Static methods | 339 | 22.36% |
▷ Public methods | 1,134 | 74.80% |
▷ Protected methods | 34 | 2.24% |
▷ Private methods | 348 | 22.96% |
Functions | 201 | |
▷ Named functions | 95 | 47.26% |
▷ Anonymous functions | 106 | 52.74% |
Constants | 149 | |
▷ Global constants | 109 | 73.15% |
▷ Class constants | 40 | 26.85% |
▷ Public constants | 40 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
22 PNG files occupy 0.46MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ps-neutral.png | 0.08KB | 0.10KB | 0.00% |
assets/images/x-logo-big@2x.png | 29.23KB | 6.01KB | ▼ 79.44% |
assets/images/hoffman.png | 0.10KB | 0.11KB | 0.00% |
assets/images/header_template_02.png | 25.12KB | 9.18KB | ▼ 63.46% |
assets/images/header_template_01.png | 16.57KB | 7.43KB | ▼ 55.19% |