Benchmarks
Plugin footprint 40% 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
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WP_Blog_Posts::wpbp_active_function() should not be called statically
Server metrics [RAM: ▼0.92MB] [CPU: ▼38.07ms] Passed 4 tests
This is a short check of server-side resources used by WP Blog Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.43 ▼0.03 | 22.72 ▼18.55 |
Dashboard /wp-admin | 3.04 ▼0.31 | 21.54 ▼40.15 |
Posts /wp-admin/edit.php | 3.04 ▼0.32 | 23.34 ▼24.33 |
Add New Post /wp-admin/post-new.php | 3.04 ▼2.85 | 22.99 ▼69.23 |
Media Library /wp-admin/upload.php | 3.04 ▼0.20 | 21.11 ▼10.61 |
WP Blog Posts /wp-admin/options-general.php?page=wp-blog-posts | 3.04 | 24.13 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
wpbp-switch |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Blog Posts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲51 | 14.78 ▲0.40 | 1.65 ▼0.58 | 40.92 ▼10.25 |
Dashboard /wp-admin | 2,212 ▲21 | 4.87 ▼0.96 | 101.07 ▼15.19 | 37.00 ▼10.86 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.06 ▲0.06 | 41.03 ▲3.50 | 35.16 ▼7.68 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.30 ▲5.61 | 666.56 ▼16.29 | 57.91 ▲1.02 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.23 ▲0.04 | 97.36 ▲2.21 | 42.03 ▲0.53 |
WP Blog Posts /wp-admin/options-general.php?page=wp-blog-posts | 823 | 2.01 | 25.36 | 31.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WP_Blog_Posts::wpbp_add_menu() should not be called statically
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp-blog-posts
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WP_Blog_Posts::wpbp_add_menu() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wp-blog-posts
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WP_Blog_Posts::wpbp_setting_display() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wp-blog-posts
- > Notice in wp-content/plugins/wp-blog-posts/wp-blog-posts.php+152
Undefined variable: wpbp_shortcode
- > GET request to /wp-admin/options-general.php?page=wp-blog-posts
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WP_Blog_Posts::wpbp_assets() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wp-blog-posts
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WP_Blog_Posts::wpbp_options_page() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wp-blog-posts
- > Deprecated in wp-admin/includes/template.php+1771
Non-static method WP_Blog_Posts::wpbp_content_callback() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wp-blog-posts
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method WP_Blog_Posts::wpbp_setting_element() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wp-blog-posts
- > Deprecated in wp-admin/includes/template.php+1824
Non-static method WP_Blog_Posts::wpbp_shortcode() should not be called statically
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 items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-blog-posts/wp-blog-posts.php:30
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
wp-blog-posts/wp-blog-posts.php Passed 13 tests
The principal PHP file in "WP Blog Posts" v. 1.0.2 is loaded by WordPress automatically on each request
110 characters long description:
WP Blog Posts plugin ability to display blog posts with title, short description, date, etc... to our website.
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 detected238 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 29 | 99 | 158 |
CSS | 2 | 3 | 2 | 80 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/post-action.png | 0.81KB | 0.77KB | ▼ 5.07% |
assets/images/wpbp_logo.png | 5.98KB | 5.20KB | ▼ 13.11% |