68% podcast-searcher-by-clarify

Code Review | Podcast Searcher by Clarify

WordPress plugin Podcast Searcher by Clarify scored 68% from 54 tests.

About plugin

  • Plugin page: podcast-searcher-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.2
  • WordPress version: 6.3.1
  • First release: Apr 30, 2015
  • Latest release: Jun 13, 2015
  • Number of updates: 17
  • Update frequency: every 2.8 days
  • Top authors: caseysoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,065 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.93MB] [CPU: ▼33.55ms] Passed 4 tests

Analyzing server-side resources used by Podcast Searcher by Clarify
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.80 ▼5.41
Dashboard /wp-admin3.02 ▼0.2924.30 ▼24.60
Posts /wp-admin/edit.php3.02 ▼0.3422.63 ▼23.65
Add New Post /wp-admin/post-new.php3.02 ▼2.8722.83 ▼73.03
Media Library /wp-admin/upload.php3.02 ▼0.2122.88 ▼12.91

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Podcast Searcher by Clarify
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲15313.71 ▼0.534.89 ▲3.0237.83 ▼5.97
Dashboard /wp-admin2,218 ▲275.90 ▲0.0196.66 ▼6.8938.37 ▼5.08
Posts /wp-admin/edit.php2,101 ▲122.03 ▼0.0139.30 ▲2.5735.27 ▲3.30
Add New Post /wp-admin/post-new.php1,545 ▲818.36 ▼4.82594.93 ▼82.9849.74 ▼11.39
Media Library /wp-admin/upload.php1,400 ▲124.20 ▲0.0399.86 ▼10.2042.11 ▼4.69
Clarify /wp-admin/clarify.php260.440.0913.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/podcast-searcher-by-clarify/wp-clarify.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'Clarify_API_Base' not found in wp-content/plugins/podcast-searcher-by-clarify/lib/class.search.php:11

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/clarify.php
    • > Network (severe)
    wp-admin/clarify.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (26 tag instead of maximum 10)
You can look at the official readme.txt

podcast-searcher-by-clarify/wp-clarify.php 85% from 13 tests

The main file in "Podcast Searcher by Clarify" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("podcast-searcher-by-clarify.php" instead of "wp-clarify.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 173 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin432 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6127433410
JSON10022

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity7.71
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2996.67%
▷ Protected methods13.33%
▷ Private methods00.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin