10% bcd-upcoming-posts

Code Review | BCD Upcoming Posts

WordPress plugin BCD Upcoming Posts scored10%from 54 tests.

About plugin

  • Plugin page: bcd-upcoming-posts
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-3.5.1
  • WordPress version: 6.3.1
  • First release: Nov 19, 2012
  • Latest release: Aug 23, 2013
  • Number of updates: 17
  • Update frequency: every 16.3 days
  • Top authors: krawl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,159 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.335.08 ▼37.85
Dashboard /wp-admin2.16 ▼1.155.33 ▼46.21
Posts /wp-admin/edit.php2.16 ▼1.206.13 ▼45.58
Add New Post /wp-admin/post-new.php2.16 ▼3.737.15 ▼104.66
Media Library /wp-admin/upload.php2.16 ▼1.075.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.001.69 ▲0.2043.50 ▲1.58
Dashboard /wp-admin2,198 ▲185.48 ▼0.1784.70 ▼6.9240.58 ▼1.23
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0436.25 ▲0.0837.54 ▲1.80
Add New Post /wp-admin/post-new.php1,526 ▼023.20 ▼0.23684.33 ▲20.3558.52 ▲10.21
Media Library /wp-admin/upload.php1,397 ▼04.22 ▲0.03103.46 ▼34.1243.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

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 === )
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP16629254
JavaScript13026
CSS1004

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 code0.23
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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