78% wp-upcoming-releases

Code Review | WP Upcoming Releases

WordPress plugin WP Upcoming Releases scored78%from 54 tests.

About plugin

  • Plugin page: wp-upcoming-releases
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.0.3
  • WordPress version: 6.3.1
  • First release: Jan 9, 2014
  • Latest release: Jan 27, 2019
  • Number of updates: 9
  • Update frequency: every 204.9 days
  • Top authors: HenriqueSilverio (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active /2,371 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.55ms] Passed 4 tests

A check of server-side resources used by WP Upcoming Releases
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0547.50 ▲4.75
Dashboard /wp-admin3.34 ▲0.0450.47 ▼7.72
Posts /wp-admin/edit.php3.40 ▲0.0449.74 ▼1.50
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.85 ▼17.92
Media Library /wp-admin/upload.php3.27 ▲0.0439.09 ▲0.93
All Releases /wp-admin/edit.php?post_type=has_releases3.3139.27
Categories /wp-admin/edit-tags.php?taxonomy=has_wpur_category&post_type=has_releases3.2634.93
New Release /wp-admin/post-new.php?post_type=has_releases3.3455.77

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_has_wpur_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP Upcoming Releases
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.25 ▼0.151.51 ▼0.2742.50 ▲1.12
Dashboard /wp-admin2,226 ▲495.62 ▼0.0285.73 ▼9.0842.38 ▲3.81
Posts /wp-admin/edit.php2,131 ▲312.01 ▲0.0136.03 ▼7.2637.24 ▼2.60
Add New Post /wp-admin/post-new.php1,557 ▲3123.05 ▼0.07659.01 ▲40.1457.61 ▲7.02
Media Library /wp-admin/upload.php1,428 ▲284.20 ▼0.01101.95 ▼2.2043.23 ▼2.46
All Releases /wp-admin/edit.php?post_type=has_releases1,1031.9231.6532.05
Categories /wp-admin/edit-tags.php?taxonomy=has_wpur_category&post_type=has_releases1,2772.1228.4330.03
New Release /wp-admin/post-new.php?post_type=has_releases1,7863.6769.3134.92

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_has_wpur_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-upcoming-releases/templates/partials/release-item.php
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-upcoming-releases/templates/releases-list.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-upcoming-releases/admin/releases-taxonomy.php:15
    • > PHP Notice
      Undefined variable: data in wp-content/plugins/wp-upcoming-releases/templates/releases-list.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-upcoming-releases/templates/releases-list.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-upcoming-releases/templates/widget-form.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-upcoming-releases/admin/releases-cpt.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-upcoming-releases/admin/releases-widget.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-upcoming-releases/admin/releases-metabox.php:87

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: custom post type, movies, events, widget, coming soon...

wp-upcoming-releases/wp-upcoming-releases.php 92% from 13 tests

The main file in "WP Upcoming Releases" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 167 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
No dangerous file extensions were detected545 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP10120164413
PO File1293571
CSS2147261

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin