77% listen2it

Code Review | Listen2It - Text-to-speech audio articles

WordPress plugin Listen2It - Text-to-speech audio articles scored77%from 54 tests.

About plugin

  • Plugin page: listen2it
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Aug 13, 2021
  • Latest release: Jun 10, 2022
  • Number of updates: 12
  • Update frequency: every 25.1 days
  • Top authors: listen2it (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,955 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.01MB] [CPU: ▼8.77ms] Passed 4 tests

Server-side resources used by Listen2It - Text-to-speech audio articles
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.80 ▲0.56
Dashboard /wp-admin3.33 ▼0.0248.26 ▼14.97
Posts /wp-admin/edit.php3.38 ▲0.0248.02 ▼7.78
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.69 ▼12.90
Media Library /wp-admin/upload.php3.25 ▲0.0238.56 ▲2.55

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Listen2It - Text-to-speech audio articles
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9414.28 ▲0.001.98 ▲0.3340.70 ▼2.71
Dashboard /wp-admin2,207 ▲305.78 ▲0.1686.37 ▼4.0968.95 ▲25.43
Posts /wp-admin/edit.php2,124 ▲242.26 ▲0.2632.61 ▼2.6532.84 ▼5.51
Add New Post /wp-admin/post-new.php1,703 ▲17522.45 ▼0.67756.39 ▲103.4654.75 ▼2.34
Media Library /wp-admin/upload.php1,421 ▲244.41 ▲0.20100.43 ▼0.7677.96 ▲33.37

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • 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
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/listen2it/public/partials/listen2it-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/listen2it/admin/partials/listen2it-admin-display.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #6 (Configure the WordPress Listen2It Plugin)
  • Donate link: Invalid url: ""
  • Screenshots: Add a description for screenshot #7 in listen2it/assets to your readme.txt
Please take inspiration from this readme.txt

listen2it/listen2it.php 92% from 13 tests

The entry point to "Listen2It - Text-to-speech audio articles" version 1.0.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 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
Success! There were no dangerous files found in this plugin557 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP12232528471
JavaScript3345559
CSS26824
SVG1003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity5.86
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods34
▷ Static methods25.88%
▷ Public methods2985.29%
▷ Protected methods00.00%
▷ Private methods514.71%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/icon.png0.70KB0.53KB▼ 24.62%