78% listenability

Code Review | Listenability

WordPress plugin Listenability scored78%from 54 tests.

About plugin

  • Plugin page: listenability
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.3
  • WordPress version: 6.3.1
  • First release: Sep 1, 2015
  • Latest release: Sep 24, 2015
  • Number of updates: 6
  • Update frequency: every 3.7 days
  • Top authors: westonruter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,474 total downloads

Benchmarks

Plugin footprint 83% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.04ms] Passed 4 tests

This is a short check of server-side resources used by Listenability
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.11 ▼1.95
Dashboard /wp-admin3.36 ▲0.0545.75 ▼5.66
Posts /wp-admin/edit.php3.41 ▲0.0549.56 ▼1.29
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.01 ▼23.27
Media Library /wp-admin/upload.php3.28 ▲0.0535.23 ▲3.62
Listenability Status /wp-admin/edit-tags.php?taxonomy=listenability_status3.3637.14
Listenability /wp-admin/options-general.php?page=listenability3.2433.33

Server storage [IO: ▲0.06MB] [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: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Listenability
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.35 ▼0.061.81 ▲0.1939.34 ▲0.12
Dashboard /wp-admin2,212 ▲345.54 ▼0.1888.63 ▼23.0841.47 ▲1.84
Posts /wp-admin/edit.php2,153 ▲502.00 ▼0.0339.38 ▼2.4838.14 ▼2.19
Add New Post /wp-admin/post-new.php1,544 ▲1623.73 ▲0.45692.13 ▲77.7753.87 ▲0.88
Media Library /wp-admin/upload.php1,420 ▲234.22 ▼0.0194.37 ▼9.4545.44 ▲0.53
Listenability Status /wp-admin/edit-tags.php?taxonomy=listenability_status1,2662.2430.9133.27
Listenability /wp-admin/options-general.php?page=listenability9792.2823.6029.61

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/listenability/bin/speechify.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/listenability/tests/test-plugin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Listenability\\add_action() in wp-content/plugins/listenability/php/class-plugin.php:86
    • > PHP Fatal error
      Uncaught Error: Class 'Listenability\\Plugin_Base' not found in wp-content/plugins/listenability/php/class-plugin.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Listenability\\get_query_var() in wp-content/plugins/listenability/php/template-singular.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 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
3 plugin tags: speech, podcast, tts

listenability/listenability.php 85% from 13 tests

"Listenability" version 0.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Everything looks great! No dangerous files found in this plugin1,033 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP11197356993
Markdown122037
CSS1203

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity16.62
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity3.63
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes00.00%
Methods40
▷ Static methods37.50%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions111.11%
▷ Anonymous functions888.89%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.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
No PNG images were found in this plugin