84% podigee-player-shortcode

Code Review | Podigee Player Shortcode

WordPress plugin Podigee Player Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: podigee-player-sh...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Jun 16, 2016
  • Latest release: Nov 8, 2018
  • Number of updates: 10
  • Update frequency: every 87.6 days
  • Top authors: podigee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,694 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.82ms] Passed 4 tests

An overview of server-side resources used by Podigee Player Shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.77 ▼6.35
Dashboard /wp-admin3.31 ▲0.0154.35 ▼2.97
Posts /wp-admin/edit.php3.36 ▲0.0050.89 ▲1.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.93 ▼2.60
Media Library /wp-admin/upload.php3.23 ▲0.0032.35 ▼3.36

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Podigee Player Shortcode
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.30 ▼0.491.68 ▼0.1339.09 ▼4.19
Dashboard /wp-admin2,195 ▲155.55 ▼0.1485.74 ▼5.7239.09 ▲0.89
Posts /wp-admin/edit.php2,079 ▼212.02 ▲0.0339.06 ▲2.6036.52 ▲0.55
Add New Post /wp-admin/post-new.php1,549 ▲823.44 ▲5.11615.52 ▼33.2752.82 ▼2.36
Media Library /wp-admin/upload.php1,400 ▲34.23 ▲0.04103.84 ▲1.8742.62 ▼4.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/podigee-player-shortcode/podigee-player-shortcode.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
5 plugin tags: podcast, podigee, embed, shortcode, player

podigee-player-shortcode/podigee-player-shortcode.php Passed 13 tests

"Podigee Player Shortcode" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
47 characters long description:
A shortcode to embed the Podigee Podcast Player

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14711

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected