Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.49ms] Passed 4 tests
An overview of server-side resources used by WP Widget in Navigation
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 35.81 ▼7.66 |
Dashboard /wp-admin | 3.39 ▲0.08 | 45.12 ▼4.86 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 49.83 ▲0.72 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 92.27 ▼15.90 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.61 ▼1.54 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Widget in Navigation
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.61 ▼0.78 | 1.58 ▼0.14 | 40.72 ▲1.64 |
Dashboard /wp-admin | 2,206 ▲21 | 4.85 ▼1.01 | 109.74 ▲2.04 | 40.99 ▲0.73 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.05 ▲0.04 | 39.39 ▼1.43 | 34.90 ▼1.69 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 18.45 ▲0.24 | 631.91 ▼22.12 | 87.07 ▲30.37 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.16 ▼0.02 | 94.48 ▼4.33 | 41.57 ▼0.95 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-widget-in-navigation/wp-widget-navigation.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Donate link: Invalid url: ""
- Stable tag: Empty value
- License: Empty value
wp-widget-in-navigation/wp-widget-navigation.php 85% from 13 tests
The main file in "WP Widget in Navigation" v. 3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Name the main plugin file the same as the plugin slug ("wp-widget-in-navigation.php" instead of "wp-widget-navigation.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,440 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 262 | 92 | 979 |
PHP | 3 | 141 | 269 | 379 |
CSS | 3 | 12 | 20 | 82 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
12 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ie6/borderBottomLeft.png | 0.21KB | 0.20KB | ▼ 4.19% |
css/images/ie6/borderTopRight.png | 0.21KB | 0.20KB | ▼ 2.34% |
css/images/ie6/borderMiddleRight.png | 0.11KB | 0.10KB | ▼ 7.41% |
css/images/ie6/borderMiddleLeft.png | 0.11KB | 0.10KB | ▼ 7.41% |
css/images/ie6/borderTopLeft.png | 0.21KB | 0.20KB | ▼ 4.63% |