Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼3.63ms] Passed 4 tests
This is a short check of server-side resources used by BrightInfo
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 43.59 ▼4.28 |
Dashboard /wp-admin | 3.41 ▲0.11 | 51.99 ▼1.98 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 58.72 ▲3.63 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 90.99 ▼10.45 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.09 ▲2.18 |
BrightInfo /wp-admin/options-general.php?page=Brightinfo_PluginSettings | 3.31 | 44.90 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
Brightinfo_Plugin__installed |
widget_recent-posts |
Brightinfo_Plugin__version |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BrightInfo
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲4 | 13.22 ▼1.43 | 4.52 ▲2.65 | 42.02 ▼1.07 |
Dashboard /wp-admin | 2,213 ▲10 | 5.89 ▲0.11 | 106.82 ▲9.30 | 40.01 ▼0.77 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.01 | 36.61 ▼3.41 | 34.44 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.29 ▲0.04 | 774.99 ▲102.70 | 58.19 ▼1.85 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.18 ▼0.02 | 96.88 ▼5.46 | 44.78 ▲1.26 |
BrightInfo /wp-admin/options-general.php?page=Brightinfo_PluginSettings | 941 | 2.05 | 27.45 | 29.55 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-comments
- Brightinfo_Plugin__version
- widget_recent-posts
- theysaidso_admin_options
- Brightinfo_Plugin__installed
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
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
Good news, no errors were detected
SRP 50% 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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/personal-content-recommendations/brightinfo.php:67
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: You are using too many tags: 14 tag instead of maximum 10
- Plugin Name: Please specify the plugin name on the first line (
=== personal-content-recommendations ===
)
personal-content-recommendations/brightinfo.php 77% from 13 tests
The main PHP file in "BrightInfo" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("personal-content-recommendations.php" instead of "brightinfo.php")
- Description: The plugin description must be longer than 10 characters (currently 0 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected573 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 179 | 557 | 542 |
JavaScript | 1 | 6 | 2 | 31 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 10.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 45 | 61.64% |
▷ Protected methods | 28 | 38.36% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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
No PNG files were detected