79% itunes-podcast-review-manager

Code Review | iTunes Podcast Review Manager

WordPress plugin iTunes Podcast Review Manager scored79%from 54 tests.

About plugin

  • Plugin page: itunes-podcast-re...
  • Plugin version: 3.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Nov 27, 2014
  • Latest release: Feb 10, 2020
  • Number of updates: 25
  • Update frequency: every 76.0 days
  • Top authors: Doug Yuen (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active /7,740 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.23MB] [CPU: ▼1.00ms] Passed 4 tests

Server-side resources used by iTunes Podcast Review Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2240.02 ▼0.57
Dashboard /wp-admin3.53 ▲0.2250.42 ▲3.88
Posts /wp-admin/edit.php3.64 ▲0.2850.99 ▲0.40
Add New Post /wp-admin/post-new.php6.13 ▲0.2484.25 ▼6.39
Media Library /wp-admin/upload.php3.45 ▲0.2236.08 ▲2.57
Podcast Reviews /wp-admin/admin.php?page=iprm_main_page3.4030.29
Premium /wp-admin/admin.php?page=iprm_premium_page3.4232.16

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 266 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
iprm_current_version
iprm_active_product
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for iTunes Podcast Review Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8713.25 ▼1.121.81 ▼0.2244.81 ▼0.70
Dashboard /wp-admin2,236 ▲455.84 ▼0.06136.67 ▲36.2240.38 ▼3.84
Posts /wp-admin/edit.php2,122 ▲332.13 ▲0.1049.25 ▲9.2034.71 ▼0.32
Add New Post /wp-admin/post-new.php1,380 ▼15316.68 ▼6.48581.44 ▼47.0753.86 ▲0.07
Media Library /wp-admin/upload.php1,415 ▲334.24 ▲0.0194.78 ▼5.7443.74 ▲3.07
Podcast Reviews /wp-admin/admin.php?page=iprm_main_page8562.0523.7743.35
Premium /wp-admin/admin.php?page=iprm_premium_page7892.0624.0527.53

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=iprm_main_page
    • > Notice in wp-content/plugins/itunes-podcast-review-manager/includes/class-iprm-podcast.php+38
    Trying to access array offset on value of type bool

SRP Passed 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
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=iprm_premium_page
    • > Javascript (severe) in unknown
    /wp-content/plugins/itunes-podcast-review-manager/includes//js/irpm_tables.js?ver=6.3.1 11:39 Uncaught TypeError: Cannot read properties of null (reading 'rows')

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: audio, review, podcasts, country, international...

itunes-podcast-review-manager/itunes-podcast-review-manager.php Passed 13 tests

The main PHP script in "iTunes Podcast Review Manager" version 3.7 is automatically included on every request by WordPress
134 characters long description:
Get your iTunes podcast reviews from all countries. Checks iTunes automatically and displays your podcast reviews in a sortable table.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,109 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP101111461,497
CSS13547324
JavaScript24142288

PHP code Passed 2 tests

This is a very shot 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.33
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity8.00
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
250 compressed PNG files occupy 0.38MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/flags/gg.png1.08KB1.24KB0.00%
images/flags/gn.png0.94KB1.34KB0.00%
images/flags/mw.png1.23KB1.41KB0.00%
images/flags/gs.png2.56KB1.72KB▼ 33.09%
images/flags/kn.png2.27KB1.60KB▼ 29.48%