Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-includes/class-wpdb.php+2035
mysqli_real_connect(): (HY000/1045): Access denied for user ''@'localhost' (using password: NO)
Server metrics [RAM: ▲0.00MB] [CPU: ▼13.36ms] Passed 4 tests
This is a short check of server-side resources used by Display phpBB Forums
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.51 ▼3.26 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.66 ▼5.62 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.04 ▼18.70 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.16 ▼25.85 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.61 ▲1.77 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Display phpBB Forums
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.48 ▲0.09 | 1.75 ▼0.07 | 43.96 ▼0.13 |
Dashboard /wp-admin | 2,200 ▲9 | 5.81 ▲0.92 | 100.07 ▼20.20 | 38.81 ▼6.36 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▼0.00 | 34.22 ▼15.18 | 34.78 ▼12.69 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 18.29 ▼5.11 | 646.43 ▲27.34 | 66.74 ▲15.14 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.21 ▼0.05 | 96.33 ▼2.36 | 42.57 ▼0.00 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/display-phpbb-forums/wpdphpbbf_main.php:10
- > PHP Notice
Undefined index: wpdphpbbf_hidden in wp-content/plugins/display-phpbb-forums/wpdphpbbf_admin.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/display-phpbb-forums/wpdphpbbf_admin.php:28
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tested up to: Invalid version format
display-phpbb-forums/wpdphpbbf_main.php 85% from 13 tests
The principal PHP file in "Display phpBB Forums" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("display-phpbb-forums.php" instead of "wpdphpbbf_main.php")
- Description: Keep the plugin description shorter than 140 characters (currently 172 characters long)
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
There were no executable files found in this plugin107 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 3 | 15 | 107 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 5 | |
▷ Named functions | 5 | 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
There are no PNG files in this plugin