Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲3.34MB] [CPU: ▲10.51ms] Passed 4 tests
Analyzing server-side resources used by Advanced Twenty Seventeen
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.06 ▲3.60 | 61.44 ▲17.34 |
Dashboard /wp-admin | 7.12 ▲3.82 | 67.78 ▲14.94 |
Posts /wp-admin/edit.php | 7.12 ▲3.77 | 59.97 ▲6.01 |
Add New Post /wp-admin/post-new.php | 8.07 ▲2.18 | 100.24 ▲3.76 |
Media Library /wp-admin/upload.php | 7.12 ▲3.89 | 59.08 ▲21.66 |
Server storage [IO: ▲2.73MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 352 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Twenty Seventeen
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲93 | 14.25 ▼0.11 | 2.01 ▼3.61 | 66.99 ▲19.52 |
Dashboard /wp-admin | 2,220 ▲43 | 5.56 ▲0.01 | 91.66 ▲1.79 | 39.54 ▼3.30 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.02 ▲0.07 | 36.49 ▼4.24 | 34.38 ▼1.57 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 18.06 ▼5.28 | 695.11 ▲45.32 | 64.51 ▲9.81 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.23 ▼0.00 | 96.15 ▼10.37 | 45.32 ▲0.79 |
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 does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/advanced-twenty-seventeen/inc/libraries/kirki/includes/dynamic-css.php
- 57× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Kirki_Field_Radio' not found in wp-content/plugins/advanced-twenty-seventeen/inc/libraries/kirki/includes/field/class-kirki-field-radio-buttonset.php:17
- > PHP Fatal error
Uncaught Error: Class 'Kirki_Field' not found in wp-content/plugins/advanced-twenty-seventeen/inc/libraries/kirki/includes/field/class-kirki-field-code.php:17
- > PHP Fatal error
Uncaught Error: Class 'Kirki_Output_Property' not found in wp-content/plugins/advanced-twenty-seventeen/inc/libraries/kirki/includes/output/property/class-kirki-output-property-background-image.php:17
- > PHP Fatal error
Uncaught Error: Class 'Kirki_Field_Select' not found in wp-content/plugins/advanced-twenty-seventeen/inc/libraries/kirki/includes/field/class-kirki-field-select2-multiple.php:19
- > PHP Fatal error
Uncaught Error: Class 'Kirki_Field' not found in wp-content/plugins/advanced-twenty-seventeen/inc/libraries/kirki/includes/field/class-kirki-field-dimension.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Panel' not found in wp-content/plugins/advanced-twenty-seventeen/inc/libraries/kirki/includes/panels/class-kirki-panels-expanded-panel.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/advanced-twenty-seventeen/inc/admin/child-theme/template-parts/footer/footer-widgets.php:13
- > PHP Fatal error
Uncaught Error: Class 'Kirki_Field' not found in wp-content/plugins/advanced-twenty-seventeen/inc/libraries/kirki/includes/field/class-kirki-field-upload.php:17
- > PHP Fatal error
Uncaught Error: Class 'Kirki_Field' not found in wp-content/plugins/advanced-twenty-seventeen/inc/libraries/kirki/includes/field/class-kirki-field-repeater.php:17
- > PHP Fatal error
Uncaught Error: Class 'Kirki_Field_Radio' not found in wp-content/plugins/advanced-twenty-seventeen/inc/libraries/kirki/includes/field/class-kirki-field-radio-image.php:17
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Plugin Name: Please specify the plugin name on the first line (
=== advanced-twenty-seventeen ===
)
advanced-twenty-seventeen/advanced-twenty-seventeen.php 92% from 13 tests
The main PHP file in "Advanced Twenty Seventeen" ver. 1.3.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.7" instead of "4.0")
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 plugin45,741 lines of code in 329 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 128 | 4,230 | 3,840 | 30,544 |
PHP | 130 | 1,820 | 5,399 | 8,254 |
HTML | 22 | 596 | 2 | 2,449 |
CSS | 15 | 265 | 69 | 2,295 |
Sass | 30 | 10 | 13 | 2,032 |
SVG | 2 | 0 | 0 | 139 |
Markdown | 1 | 5 | 0 | 23 |
Bourne Shell | 1 | 0 | 1 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 8.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 95.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 117 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 117 | 100.00% |
▷ Final classes | 6 | 5.13% |
Methods | 382 | |
▷ Static methods | 80 | 20.94% |
▷ Public methods | 204 | 53.40% |
▷ Protected methods | 150 | 39.27% |
▷ Private methods | 28 | 7.33% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
11 PNG files occupy 0.36MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/libraries/kirki/assets/images/1c.png | 0.74KB | 0.09KB | ▼ 87.24% |
inc/libraries/kirki/assets/images/3cl.png | 0.77KB | 0.14KB | ▼ 81.42% |
inc/libraries/kirki/assets/images/kirki-bottom.png | 1.51KB | 1.09KB | ▼ 27.89% |
inc/admin/child-theme/screenshot.png | 355.31KB | 359.13KB | 0.00% |
inc/libraries/kirki/assets/images/kirki-toolkit.png | 8.99KB | 5.49KB | ▼ 38.95% |