Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.64MB] [CPU: ▼6.38ms] Passed 4 tests
Analyzing server-side resources used by BU Navigation
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.02 ▲0.56 | 44.07 ▲3.78 |
Dashboard /wp-admin | 3.98 ▲0.63 | 50.77 ▼8.49 |
Posts /wp-admin/edit.php | 4.03 ▲0.68 | 47.48 ▲2.97 |
Add New Post /wp-admin/post-new.php | 6.63 ▲0.74 | 85.44 ▼23.77 |
Media Library /wp-admin/upload.php | 3.90 ▲0.67 | 38.74 ▲4.23 |
Edit Order /wp-admin/edit.php?post_type=page&page=bu-navigation-manager | 3.83 | 44.60 |
Server storage [IO: ▲3.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 137 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_bu_pages |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BU Navigation
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.32 ▼1.33 | 4.52 ▲2.59 | 45.56 ▲1.75 |
Dashboard /wp-admin | 2,210 ▲22 | 4.87 ▼1.01 | 100.01 ▼16.58 | 39.54 ▼7.29 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.18 ▲0.13 | 36.85 ▼1.71 | 31.54 ▼6.13 |
Add New Post /wp-admin/post-new.php | 6,200 ▲4,681 | 19.70 ▼3.46 | 964.66 ▲340.19 | 53.99 ▲4.86 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.21 ▲0.04 | 102.62 ▲7.12 | 45.50 ▲3.21 |
Edit Order /wp-admin/edit.php?post_type=page&page=bu-navigation-manager | 1,071 | 2.81 | 68.36 | 48.97 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_bu_pages
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 fix the following
- 34× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: post in wp-content/plugins/bu-navigation/templates/metabox-navigation-attributes.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bu-navigation/includes/class-tree-view.php:553
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/bu-navigation/tests/phpunit/nav-testcase.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function BU\\Plugins\avigation\\add_filter() in wp-content/plugins/bu-navigation/composer-includes/bu-navigation-core-widget/src/filters.php:39
- > PHP Fatal error
Uncaught Error: Class 'BU_Navigation_UnitTestCase' not found in wp-content/plugins/bu-navigation/tests/phpunit/test-extras.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bu-navigation/templates/primary-navigation.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_SeleniumTestCase' not found in wp-content/plugins/bu-navigation/tests/selenium/nav-selenium-testcase.php:3
- > PHP Fatal error
Uncaught Error: Class 'BU_Navigation_UnitTestCase' not found in wp-content/plugins/bu-navigation/tests/phpunit/test-plugin.php:9
- > PHP Notice
Trying to get property 'menu_order' of non-object in wp-content/plugins/bu-navigation/templates/metabox-navigation-attributes.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bu-navigation/includes/class-tree-view.php:553
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: bu, navigation, hierarchical, post type, boston university
bu-navigation/bu-navigation.php Passed 13 tests
The principal PHP file in "BU Navigation" v. 1.3.4 is loaded by WordPress automatically on each request
82 characters long description:
Provides alternative navigation elements designed for blogs with large page counts
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
No dangerous file extensions were detected63,811 lines of code in 104 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 8 | 27 | 0 | 48,190 |
JavaScript | 21 | 836 | 860 | 7,071 |
PHP | 46 | 2,181 | 2,509 | 5,923 |
CSS | 12 | 287 | 356 | 1,842 |
PO File | 1 | 106 | 111 | 297 |
Bourne Shell | 2 | 21 | 11 | 122 |
YAML | 3 | 9 | 0 | 108 |
Python | 3 | 17 | 24 | 82 |
Markdown | 3 | 27 | 0 | 79 |
XML | 3 | 6 | 3 | 68 |
Cucumber | 1 | 5 | 1 | 25 |
Sass | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 15.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 231 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 218 | 94.37% |
▷ Protected methods | 11 | 4.76% |
▷ Private methods | 2 | 0.87% |
Functions | 73 | |
▷ Named functions | 63 | 86.30% |
▷ Anonymous functions | 10 | 13.70% |
Constants | 65 | |
▷ Global constants | 13 | 20.00% |
▷ Class constants | 52 | 80.00% |
▷ Public constants | 52 | 100.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
11 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/vendor/jstree/themes/classic/d.png | 7.36KB | 2.58KB | ▼ 64.91% |
images/ui-icons_333333_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
images/ui-icons_999999_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
js/vendor/jstree/themes/bu-jstree/sprite.png | 6.79KB | 3.47KB | ▼ 48.90% |
js/vendor/jstree/themes/default/d.png | 7.46KB | 2.60KB | ▼ 65.11% |