Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.06MB] [CPU: ▼147.55ms] Passed 4 tests
A check of server-side resources used by FirmaSite Theme Enhancer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 30.10 ▲9.97 |
Dashboard /wp-admin | 3.11 ▲0.05 | 45.09 ▲1.26 |
Posts /wp-admin/edit.php | 3.20 ▲0.09 | 43.41 ▼2.14 |
Add New Post /wp-admin/post-new.php | 5.01 ▼0.42 | 66.99 ▼591.78 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 33.52 ▲2.45 |
Server storage [IO: ▲1.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 65 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_simpleimage |
Browser metrics Passed 4 tests
This is an overview of browser requirements for FirmaSite Theme Enhancer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,694 ▲98 | 16.03 ▲0.08 | 7.90 ▼2.97 | 65.30 ▲18.82 |
Dashboard /wp-admin | 2,976 ▲45 | 5.98 ▼0.18 | 133.93 ▼10.05 | 107.60 ▼8.35 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.71 ▲0.00 | 69.80 ▲6.17 | 86.44 ▼10.92 |
Add New Post /wp-admin/post-new.php | 1,683 ▼2,115 | 18.90 ▲3.54 | 371.44 ▼86.72 | 113.85 ▲15.95 |
Media Library /wp-admin/upload.php | 1,816 ▲9 | 5.11 ▲0.06 | 143.88 ▼8.64 | 120.77 ▼6.71 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_simpleimage
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/firmasite-theme-enhancer/simple-image-widget/templates/widget.php
- > /wp-content/plugins/firmasite-theme-enhancer/wpeditor.php
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/firmasite-theme-enhancer/widget-visibility/widget-conditions.php:521
- > PHP Notice
Undefined index: multiple_properties in wp-content/plugins/firmasite-theme-enhancer/theme-enhancer/functions/csstidy/data-wp.inc.php on line 34
- > PHP Notice
Undefined index: unit_values in wp-content/plugins/firmasite-theme-enhancer/theme-enhancer/functions/csstidy/data-wp.inc.php on line 16
- > PHP Notice
Undefined index: color_values in wp-content/plugins/firmasite-theme-enhancer/theme-enhancer/functions/csstidy/data-wp.inc.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/firmasite-theme-enhancer/simple-image-widget/includes/class-simple-image-widget.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/firmasite-theme-enhancer/simple-image-widget/simple-image-widget.php:28
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/firmasite-theme-enhancer/theme-enhancer/functions/csstidy/data-wp.inc.php on line 24
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/firmasite-theme-enhancer/theme-enhancer/functions/csstidy/class.csstidy.php on line 854
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/firmasite-theme-enhancer/theme-enhancer/functions/csstidy/data-wp.inc.php on line 16
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/firmasite-theme-enhancer/theme-enhancer/functions/csstidy/data-wp.inc.php on line 34
- > 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
These attributes need your attention:
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
firmasite-theme-enhancer/firmasite-plugin.php 92% from 13 tests
The principal PHP file in "FirmaSite Theme Enhancer" v. 1.5.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("firmasite-theme-enhancer.php" instead of "firmasite-plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin6,758 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 590 | 1,761 | 3,788 |
CSS | 11 | 73 | 14 | 900 |
JavaScript | 6 | 122 | 95 | 782 |
SVG | 2 | 0 | 0 | 687 |
PO File | 5 | 236 | 420 | 601 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 148)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 75.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 248.00 |
Average method complexity | 7.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 148.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 15 | 14.15% |
▷ Public methods | 99 | 93.40% |
▷ Protected methods | 7 | 6.60% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 132.12KB | 55.46KB | ▼ 58.03% |
screenshot-1.png | 35.88KB | 13.62KB | ▼ 62.03% |