84% spoken-word

Code Review | Spoken Word

WordPress plugin Spoken Word scored84%from 54 tests.

About plugin

  • Plugin page: spoken-word
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 6.3.1
  • First release: Jan 21, 2018
  • Latest release: Jan 22, 2018
  • Number of updates: 9
  • Update frequency: every 0.8 days
  • Top authors: westonruter (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /3,917 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.63ms] Passed 4 tests

Analyzing server-side resources used by Spoken Word
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.44 ▼1.73
Dashboard /wp-admin3.32 ▼0.0250.51 ▼18.01
Posts /wp-admin/edit.php3.38 ▲0.0249.41 ▼6.04
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.34 ▼8.74
Media Library /wp-admin/upload.php3.25 ▲0.0240.80 ▲3.27

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Spoken Word: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8213.60 ▼0.5816.60 ▲14.9243.28 ▲2.39
Dashboard /wp-admin2,195 ▲245.67 ▲0.0290.54 ▲3.3740.62 ▲2.16
Posts /wp-admin/edit.php2,100 ▲32.00 ▼0.0338.67 ▲2.5635.65 ▼2.65
Add New Post /wp-admin/post-new.php1,529 ▼623.24 ▲4.90629.69 ▼2.6663.76 ▲3.26
Media Library /wp-admin/upload.php1,394 ▼94.20 ▲0.0296.38 ▼5.0341.74 ▼5.40

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
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 Spoken_Word\\add_action() in wp-content/plugins/spoken-word/spoken-word.php:94

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 96% 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
6 plugin tags: audio, read-along, speech-synthesis, text-to-speech, voice...

spoken-word/spoken-word.php 92% from 13 tests

"Spoken Word" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 149 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected660 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript279175485
CSS210095
PHP1174580

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
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
Namespaces1
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin