Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.44MB] [CPU: ▼273.36ms] 75% from 4 tests
Analyzing server-side resources used by GloriousThemes Starter Sites
Please take the time to fix the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,742.28ms on /wp-admin/admin.php?page=glorious-sites-installer)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.40 ▲4.89 | 76.92 ▲24.29 |
Dashboard /wp-admin | 8.42 ▲5.01 | 60.07 ▲24.09 |
Posts /wp-admin/edit.php | 8.42 ▲4.78 | 65.46 ▲24.16 |
Add New Post /wp-admin/post-new.php | 10.04 ▲3.06 | 124.21 ▼1,155.48 |
Media Library /wp-admin/upload.php | 8.42 ▲5.12 | 46.15 ▲13.80 |
Glorious Sites Installer /wp-admin/admin.php?page=glorious-sites-installer | 8.42 | 1,742.28 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 8.42 | 44.60 |
Server storage [IO: ▲11.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 284 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_active_plugins |
fs_debug_mode |
fs_gdpr |
fs_accounts |
Browser metrics Passed 4 tests
GloriousThemes Starter Sites: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,818 ▲96 | 15.86 ▲0.28 | 5.75 ▼1.00 | 2.22 ▼0.45 |
Dashboard /wp-admin | 2,943 ▲82 | 6.09 ▼0.13 | 117.29 ▼13.89 | 175.98 ▲17.08 |
Posts /wp-admin/edit.php | 2,742 ▲57 | 3.25 ▲0.03 | 70.02 ▲4.96 | 164.89 ▲19.56 |
Add New Post /wp-admin/post-new.php | 1,680 ▼78 | 19.27 ▼2.07 | 419.86 ▼29.91 | 153.01 ▼7.16 |
Media Library /wp-admin/upload.php | 1,746 ▲48 | 5.54 ▲0.01 | 159.47 ▲23.69 | 209.37 ▲13.13 |
Glorious Sites Installer /wp-admin/admin.php?page=glorious-sites-installer | 1,290 | 2.46 | 55.46 | 168.63 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 1,399 | 2.73 | 58.79 | 112.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 4 options
- fs_active_plugins
- fs_debug_mode
- fs_gdpr
- fs_accounts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/glorious-sites-installer/freemius/templates/ajax-loader.php
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/glorious-sites-installer/includes/importers/customize/class-oc-customize-demo-importer-setting.php:14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/glorious-sites-installer/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/glorious-sites-installer/freemius/templates/account/partials/addon.php:9
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/glorious-sites-installer/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/glorious-sites-installer/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/glorious-sites-installer/freemius/templates/account/partials/addon.php on line 8
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/glorious-sites-installer/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/glorious-sites-installer/freemius/templates/partials/network-activation.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Upgrader' not found in wp-content/plugins/glorious-sites-installer/includes/admin/class-demo-pack-upgrader.php:14
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/glorious-sites-installer/freemius/templates/account/partials/addon.php on line 6
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Theme Demos listing page.), #2 (Install and activate the required plugins.), #3 (Finally, Import the Demo with just one click.)
glorious-sites-installer/glorious-sites-installer.php 92% from 13 tests
The principal PHP file in "GloriousThemes Starter Sites" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Git Repository: Please do not include Git repositories in your plugin
Code Analysis 97% from 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 plugin65,433 lines of code in 222 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 129 | 8,047 | 17,269 | 34,245 |
PO File | 13 | 7,982 | 9,637 | 17,175 |
XML | 1 | 15 | 30 | 5,764 |
Sass | 36 | 485 | 80 | 3,143 |
JavaScript | 12 | 578 | 598 | 2,833 |
CSS | 16 | 174 | 18 | 1,016 |
JSON | 5 | 1 | 0 | 937 |
Markdown | 8 | 106 | 0 | 292 |
YAML | 2 | 2 | 0 | 28 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 2,907)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 80.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,907.00 |
Average method complexity | 4.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 2 | 3.51% |
Methods | 1,254 | |
▷ Static methods | 190 | 15.15% |
▷ Public methods | 899 | 71.69% |
▷ Protected methods | 18 | 1.44% |
▷ Private methods | 337 | 26.87% |
Functions | 105 | |
▷ Named functions | 105 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 132 | |
▷ Global constants | 107 | 81.06% |
▷ Class constants | 25 | 18.94% |
▷ Public constants | 25 | 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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/glorious-sites-installer.png | 5.42KB | 2.55KB | ▼ 52.94% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |