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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 3.81 ▼30.89 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.33 ▼38.01 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.24 ▼37.83 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.24 ▼79.40 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.47 ▼27.38 |
UpCast /wp-admin/options-general.php?page=upcast-setting-admin | 2.05 | 5.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.35 ▲0.00 | 1.72 ▲0.20 | 37.41 ▼7.08 |
Dashboard /wp-admin | 2,201 ▲21 | 5.61 ▲0.02 | 83.57 ▼6.15 | 38.15 ▼2.04 |
Posts /wp-admin/edit.php | 2,106 ▲9 | 2.03 ▲0.01 | 38.98 ▲3.72 | 37.23 ▲2.35 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.06 ▼0.08 | 621.47 ▼62.71 | 56.79 ▲5.44 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▼0.20 | 100.17 ▼2.61 | 43.68 ▼2.54 |
UpCast /wp-admin/options-general.php?page=upcast-setting-admin | 3,103 | 1.74 | 26.20 | 33.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
- > PHP Warning
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 166 | 158 | 1,308 |
CSS | 1 | 8 | 1 | 89 |
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 code | 0.58 |
Average class complexity | 58.33 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 131.00 |
Average method complexity | 4.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 101.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 2 | 4.44% |
▷ Public methods | 45 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 18 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
UpCastPPHeader.png | 25.26KB | 5.41KB | ▼ 78.57% |