Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.30ms] Passed 4 tests
Analyzing server-side resources used by WPStores Theme Enhancer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 35.65 ▼3.55 |
Dashboard /wp-admin | 3.40 ▲0.10 | 50.63 ▲1.84 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 45.31 ▼2.68 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 84.70 ▼4.82 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 34.96 ▲1.97 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WPStores Theme Enhancer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲103 | 13.58 ▼0.80 | 3.06 ▲1.21 | 94.60 ▲48.41 |
Dashboard /wp-admin | 2,206 ▲15 | 4.86 ▼0.17 | 101.42 ▲4.28 | 42.25 ▼3.00 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.03 | 35.07 ▼4.76 | 34.19 ▼1.24 |
Add New Post /wp-admin/post-new.php | 1,528 ▼9 | 23.08 ▼0.08 | 643.33 ▲0.85 | 53.86 ▲2.09 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▼0.21 | 97.00 ▼3.55 | 48.06 ▲6.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpstores-theme-enhancer/lib/author.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpstores-theme-enhancer/lib/seo.php:89
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpstores-theme-enhancer/lib/sidebar.php:185
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpstores-theme-enhancer/lib/opengraph.php:116
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpstores-theme-enhancer/lib/social.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpstores-theme-enhancer/wpstores.php:18
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: theme enhancer, wpstores
wpstores-theme-enhancer/wpstores.php 92% from 13 tests
"WPStores Theme Enhancer" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wpstores-theme-enhancer.php" instead of "wpstores.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin982 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 75 | 80 | 521 |
JavaScript | 2 | 133 | 181 | 249 |
CSS | 1 | 17 | 30 | 212 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
21 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/linkedin.png | 2.06KB | 1.39KB | ▼ 32.37% |
images/sbmail.png | 1.25KB | 0.48KB | ▼ 61.61% |
images/yahoo.png | 2.05KB | 1.35KB | ▼ 34.03% |
images/googleplus.png | 2.44KB | 1.42KB | ▼ 42.01% |
images/default.png | 1.55KB | 1.06KB | ▼ 32.04% |