Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/bcd-upcoming-posts/bcd-upcoming-posts.php+22
Methods with the same name as their class will not be constructors in a future version of PHP; BCD_Upcoming_Posts has a deprecated constructor
Server metrics [RAM: ▼1.85MB] [CPU: ▼58.58ms] Passed 4 tests
Analyzing server-side resources used by BCD Upcoming Posts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.33 | 5.08 ▼37.85 |
Dashboard /wp-admin | 2.16 ▼1.15 | 5.33 ▼46.21 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 6.13 ▼45.58 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 7.15 ▼104.66 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 5.98 ▼29.85 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_bcd_upcoming_posts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
BCD Upcoming Posts: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.00 | 1.69 ▲0.20 | 43.50 ▲1.58 |
Dashboard /wp-admin | 2,198 ▲18 | 5.48 ▼0.17 | 84.70 ▼6.92 | 40.58 ▼1.23 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.02 ▲0.04 | 36.25 ▲0.08 | 37.54 ▲1.80 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.20 ▼0.23 | 684.33 ▲20.35 | 58.52 ▲10.21 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.22 ▲0.03 | 103.46 ▼34.12 | 43.82 ▼9.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/bcd-upcoming-posts/bcd-upcoming-posts.php+22
Methods with the same name as their class will not be constructors in a future version of PHP; BCD_Upcoming_Posts has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_bcd_upcoming_posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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 items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/bcd-upcoming-posts/bcd-upcoming-posts.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Donate link: Invalid URI found ("www.duhjones.com")
- Plugin Name: Please specify the plugin name on the first line (
=== bcd-upcoming-posts ===
)
bcd-upcoming-posts/bcd-upcoming-posts.php 92% from 13 tests
This is the main PHP file of "BCD Upcoming Posts" version 1.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 189 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected284 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 66 | 29 | 254 |
JavaScript | 1 | 3 | 0 | 26 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin