10% upcast

Code Review | UpCast

WordPress plugin UpCast scored10%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: 6.3.1
  • 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 /1,093 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > User deprecated in wp-includes/functions.php+5643
    File class-feed.php is deprecated since version 4.7.0! Use fetch_feed() instead.

Server metrics [RAM: ▼1.96MB] [CPU: ▼46.53ms] Passed 4 tests

Analyzing server-side resources used by UpCast
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.443.81 ▼30.89
Dashboard /wp-admin2.05 ▼1.266.33 ▼38.01
Posts /wp-admin/edit.php2.05 ▼1.315.24 ▼37.83
Add New Post /wp-admin/post-new.php2.05 ▼3.846.24 ▼79.40
Media Library /wp-admin/upload.php2.05 ▼1.186.47 ▼27.38
UpCast /wp-admin/options-general.php?page=upcast-setting-admin2.055.24

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_upcast_widget
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for UpCast
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.35 ▲0.001.72 ▲0.2037.41 ▼7.08
Dashboard /wp-admin2,201 ▲215.61 ▲0.0283.57 ▼6.1538.15 ▼2.04
Posts /wp-admin/edit.php2,106 ▲92.03 ▲0.0138.98 ▲3.7237.23 ▲2.35
Add New Post /wp-admin/post-new.php1,531 ▲323.06 ▼0.08621.47 ▼62.7156.79 ▲5.44
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.20100.17 ▼2.6143.68 ▼2.54
UpCast /wp-admin/options-general.php?page=upcast-setting-admin3,1031.7426.2033.87

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
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5643
    File class-feed.php is deprecated since version 4.7.0! Use fetch_feed() instead.
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_upcast_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=upcast-setting-admin
    • > User deprecated in wp-includes/functions.php+5643
    File 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+5653
    File 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 24× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > 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 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
      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 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
      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
      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
      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 27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: widget, mp3, upcast, podcast, shortcode...

upcast/upcast.php Passed 13 tests

The primary PHP file in "UpCast" version 1.2 is used by WordPress to initiate all plugin functionality
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 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable 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 logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Method cyclomatic complexity has to 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

Using a strong compression for your PNG files is a great way to speed-up your plugin
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%