Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼6.29ms] Passed 4 tests
Analyzing server-side resources used by Top-Bar CodeBulls
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 24.84 ▼16.25 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.81 ▼2.25 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 43.86 ▼3.00 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 90.40 ▼3.66 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.71 ▲0.27 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Top-Bar CodeBulls
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲88 | 13.71 ▼0.67 | 1.54 ▼0.32 | 38.95 ▼4.81 |
Dashboard /wp-admin | 2,239 ▲51 | 4.91 ▼0.97 | 92.43 ▼15.68 | 76.70 ▲31.36 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.02 ▲0.00 | 45.06 ▲7.53 | 33.93 ▼0.32 |
Add New Post /wp-admin/post-new.php | 1,698 ▲164 | 22.25 ▼0.95 | 671.64 ▲1.34 | 60.87 ▲9.50 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.11 ▼0.15 | 113.69 ▲4.18 | 46.18 ▼0.37 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
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
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codebulls-top-bar/includes/general-content.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codebulls-top-bar/includes/top-bar-content.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codebulls-top-bar/includes/tab-manager.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codebulls-top-bar/includes/generate-top-bar.php:2
- > 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 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3 in codebulls-top-bar/assets to your readme.txt
- License uri: Invalid URI found ("[GPLv2](http://www.gnu.org/licences/gpl-2.0.html)")
codebulls-top-bar/codebulls-top-bar.php Passed 13 tests
The main PHP script in "Top-Bar CodeBulls" version 1.5.0 is automatically included on every request by WordPress
46 characters long description:
A simple Top Bar that can be fully customized.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin662 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 37 | 53 | 527 |
CSS | 2 | 16 | 19 | 70 |
Markdown | 1 | 9 | 0 | 38 |
JavaScript | 2 | 1 | 0 | 27 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 17 | |
▷ Named functions | 17 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected