10% upcast

Code Review | UpCast

WordPress plugin UpCast scored 10% from 54 tests.

About plugin

  • Plugin page: upcast
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.2-4.5.1
  • WordPress version: 5.9.2
  • First release: Jun 6, 2015
  • Latest release: May 5, 2016
  • Number of updates: 16
  • Update frequency: every 20.9 days
  • Top authors: upcast (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 926 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5506
    class-feed.php is deprecated since version 4.7.0! Use fetch_feed() instead.

Server metrics [RAM: ▼2.54MB] [CPU: ▼346.02ms] Passed 4 tests

A check of server-side resources used by UpCast
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.84 ▼1.673.98 ▼46.47
Dashboard /wp-admin1.86 ▼1.553.67 ▼30.23
Posts /wp-admin/edit.php1.86 ▼1.784.13 ▼32.43
Add New Post /wp-admin/post-new.php1.86 ▼5.144.51 ▼1,274.96
Media Library /wp-admin/upload.php1.86 ▼1.443.82 ▼18.19
UpCast /wp-admin/options-general.php?page=upcast-setting-admin1.863.93

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options
widget_upcast_widget

Browser metrics Passed 4 tests

A check of browser resources used by UpCast
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,806 ▲6415.84 ▲0.206.06 ▲0.062.74 ▲0.74
Dashboard /wp-admin2,899 ▲456.10 ▼0.10115.71 ▼15.37155.04 ▼3.93
Posts /wp-admin/edit.php2,664 ▼213.25 ▲0.0264.84 ▼3.13141.23 ▼13.25
Add New Post /wp-admin/post-new.php1,666 ▲516.72 ▲0.36399.54 ▼19.12153.57 ▲7.55
Media Library /wp-admin/upload.php1,702 ▲45.55 ▲0.06139.38 ▲0.07187.42 ▲0.71
UpCast /wp-admin/options-general.php?page=upcast-setting-admin3,4122.4157.44150.22

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5506
    class-feed.php is deprecated since version 4.7.0! Use fetch_feed() instead.
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_upcast_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=upcast-setting-admin
    • > User deprecated in wp-includes/functions.php+5506
    class-feed.php is deprecated since version 4.7.0! Use fetch_feed() instead.
    • > GET request to /wp-admin/options-general.php?page=upcast-setting-admin
    • > User deprecated in wp-includes/functions.php+5516
    class-wp-feed-cache.php is deprecated since version 5.6.0 with no alternative available. This file is only loaded for backward compatibility with SimplePie 1.2.x. Please consider switching to a recent SimplePie version.

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
Please fix the following items
  • 24× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      require_once(ABSPATHWPINC/class-feed.php): failed to open stream: No such file or directory in wp-content/plugins/upcast/settings.php on line 27
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/upcast/settings.php on line 26
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/upcast/settings.php on line 27
    • > PHP Warning
      include_once(ABSPATHWPINC/feed.php): failed to open stream: No such file or directory in wp-content/plugins/upcast/settings.php on line 26
    • > PHP Warning
      include_once(ABSPATHWPINC/feed.php): failed to open stream: No such file or directory in wp-content/plugins/upcast/settings.php on line 26
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/upcast/settings.php on line 26
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHWPINC/class-feed.php' (include_path='.:/usr/share/php') in wp-content/plugins/upcast/settings.php on line 27
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHWPINC/feed.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/upcast/settings.php on line 26
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/upcast/settings.php on line 27
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/upcast/settings.php on line 26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: rss, widget, shortcode, podcast, itunes...

upcast/upcast.php Passed 13 tests

The main PHP file in "UpCast" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
Display customised podcast lists and episodes from upcast.me.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,397 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP31661581,308
CSS18189

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
Please fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 101)
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity58.33
▷ Minimum class complexity12.00
▷ Maximum class complexity131.00
Average method complexity4.82
▷ Minimum method complexity1.00
▷ Maximum method complexity101.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods45
▷ Static methods24.44%
▷ Public methods45100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants18100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
UpCastPPHeader.png25.26KB5.41KB▼ 78.57%