Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.69MB] [CPU: ▲4.89ms] Passed 4 tests
Server-side resources used by Microthemer Lite - Visual Editor to Customize CSS
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 38.06 ▼4.52 |
Dashboard /wp-admin | 5.48 ▲2.18 | 62.52 ▲10.58 |
Posts /wp-admin/edit.php | 5.51 ▲2.15 | 68.15 ▲21.33 |
Add New Post /wp-admin/post-new.php | 8.08 ▲2.20 | 96.97 ▼1.80 |
Media Library /wp-admin/upload.php | 5.41 ▲2.18 | 50.27 ▲15.30 |
Server storage [IO: ▲10.68MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 156 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Microthemer Lite - Visual Editor to Customize CSS
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲157 | 13.84 ▼0.50 | 8.87 ▲7.15 | 37.43 ▼6.24 |
Dashboard /wp-admin | 2,225 ▲45 | 5.59 ▼0.02 | 96.29 ▼2.86 | 42.12 ▼1.41 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.02 ▲0.01 | 40.09 ▲0.28 | 35.77 ▼5.75 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.43 ▼0.18 | 648.62 ▼17.59 | 68.51 ▼2.00 |
Media Library /wp-admin/upload.php | 1,427 ▲30 | 4.20 ▲0.00 | 100.28 ▲1.12 | 42.60 ▲2.56 |
Manage Packs /wp-admin/tvr-manage-micro-themes.php | 26 | 0.41 | 0.14 | 13.70 |
Fonts /wp-admin/tvr-fonts.php | 26 | 0.41 | 0.09 | 6.54 |
Microthemer /wp-admin/tvr-microthemer.php | 26 | 0.41 | 0.06 | 7.42 |
Documentation /wp-admin/tvr-docs.php | 26 | 0.41 | 0.08 | 5.12 |
Preferences /wp-admin/tvr-microthemer-preferences.php | 26 | 0.41 | 0.09 | 6.04 |
Detached Preview /wp-admin/tvr-microthemer-preview-wrap.php | 26 | 0.41 | 0.10 | 7.07 |
Manage Single Pack /wp-admin/tvr-manage-single.php | 26 | 0.41 | 0.12 | 5.40 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 fix the following items
- 13× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/microthemer/includes/tvr-microthemer-preferences.php
- > /wp-content/plugins/microthemer/includes/tvr-manage-single.php
- > /wp-content/plugins/microthemer/includes/tvr-microthemer-preview-wrap.php
- > /wp-content/plugins/microthemer/includes/program-data.php
- > /wp-content/plugins/microthemer/includes/resolve-input-fields.inc.php
- > /wp-content/plugins/microthemer/includes/tvr-microthemer-ui.php
- > /wp-content/plugins/microthemer/includes/common-inline-assets.php
- > /wp-content/plugins/microthemer/get-dir-paths.inc.php
- > /wp-content/plugins/microthemer/includes/internal-docs.php
- > /wp-content/plugins/microthemer/includes/grid-control.inc.php
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Microthemer\\Dependencies\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/microthemer/src/Dependencies/Minify/minify/src/Exceptions/IOException.php:20
- > PHP Fatal error
Uncaught Error: Class 'Microthemer\\AssetLoad' not found in wp-content/plugins/microthemer/src/AssetAuth.php:13
- > PHP Fatal error
Uncaught Error: Class 'Microthemer\\Dependencies\\Minify\\Minify' not found in wp-content/plugins/microthemer/src/Dependencies/Minify/minify/src/JS.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/microthemer/includes/js-i18n.inc.php:6
- > PHP Fatal error
Uncaught Error: Interface 'Microthemer\\Dependencies\\Minify\\PathConverter\\ConverterInterface' not found in wp-content/plugins/microthemer/src/Dependencies/Minify/path-converter/src/Converter.php:19
- > PHP Fatal error
Uncaught Error: Class 'Microthemer\\Dependencies\\Minify\\Minify' not found in wp-content/plugins/microthemer/src/Dependencies/Minify/minify/src/CSS.php:29
- > PHP Fatal error
Uncaught Error: Interface 'Microthemer\\Dependencies\\Minify\\PathConverter\\ConverterInterface' not found in wp-content/plugins/microthemer/src/Dependencies/Minify/path-converter/src/NoConverter.php:14
- > PHP Fatal error
Trait 'Microthemer\\PluginTrait' not found in wp-content/plugins/microthemer/src/Admin.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Microthemer\\Dependencies\\Minify\\Exception' not found in wp-content/plugins/microthemer/src/Dependencies/Minify/minify/src/Exceptions/BasicException.php:22
- > PHP Warning
Use of undefined constant TVR_DEV_MODE - assumed 'TVR_DEV_MODE' (this will throw an Error in a future version of PHP) in wp-content/plugins/microthemer/includes/js-dynamic.php on line 10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/tvr-manage-micro-themes.php
- > Network (severe)
wp-admin/tvr-manage-micro-themes.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/tvr-fonts.php
- > Network (severe)
wp-admin/tvr-fonts.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/tvr-microthemer.php
- > Network (severe)
wp-admin/tvr-microthemer.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/tvr-docs.php
- > Network (severe)
wp-admin/tvr-docs.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/tvr-microthemer-preferences.php
- > Network (severe)
wp-admin/tvr-microthemer-preferences.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/tvr-microthemer-preview-wrap.php
- > Network (severe)
wp-admin/tvr-microthemer-preview-wrap.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/tvr-manage-single.php
- > Network (severe)
wp-admin/tvr-manage-single.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: css, visual editor, responsive, customize, google fonts
microthemer/tvr-microthemer.php 85% from 13 tests
The main PHP script in "Microthemer Lite - Visual Editor to Customize CSS" version 7.2.4.9 is automatically included on every request by WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 454 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("microthemer.php" instead of "tvr-microthemer.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected42,522 lines of code in 120 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 5,925 | 5,704 | 28,776 |
PO File | 3 | 2,528 | 2,916 | 7,328 |
CSS | 13 | 559 | 82 | 4,776 |
JavaScript | 47 | 280 | 372 | 1,325 |
JSON | 3 | 0 | 0 | 229 |
SVG | 8 | 0 | 0 | 80 |
XML | 1 | 2 | 0 | 8 |
PHP code 0% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,236)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 131)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 89.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,236.00 |
Average method complexity | 5.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 131.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 1 | |
Traits | 8 | |
Classes | 16 | |
▷ Abstract classes | 3 | 18.75% |
▷ Concrete classes | 13 | 81.25% |
▷ Final classes | 0 | 0.00% |
Methods | 481 | |
▷ Static methods | 13 | 2.70% |
▷ Public methods | 434 | 90.23% |
▷ Protected methods | 47 | 9.77% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 14 | 46.67% |
▷ Anonymous functions | 16 | 53.33% |
Constants | 18 | |
▷ Global constants | 17 | 94.44% |
▷ Class constants | 1 | 5.56% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/trans-big.png | 1.00KB | 0.16KB | ▼ 84.26% |
images/trans-big-dark.png | 0.92KB | 0.09KB | ▼ 90.29% |