78% speakol

Code Review | Speakol

WordPress plugin Speakol scored78%from 54 tests.

About plugin

  • Plugin page: speakol
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.3
  • WordPress version: 6.3.1
  • First release: May 4, 2015
  • Latest release: Jul 30, 2015
  • Number of updates: 29
  • Update frequency: every 7.9 days
  • Top authors: infralayer (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /1,283 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.18ms] Passed 4 tests

A check of server-side resources used by Speakol
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0749.51 ▲9.62
Dashboard /wp-admin3.38 ▲0.0852.89 ▲2.35
Posts /wp-admin/edit.php3.50 ▲0.1451.32 ▲0.46
Add New Post /wp-admin/post-new.php5.99 ▲0.0992.20 ▼12.46
Media Library /wp-admin/upload.php3.31 ▲0.0736.41 ▲0.93

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Speakol: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.22 ▼0.372.18 ▲0.2842.65 ▼2.94
Dashboard /wp-admin2,202 ▲225.56 ▼0.1084.10 ▼3.5367.93 ▲32.23
Posts /wp-admin/edit.php2,125 ▲252.03 ▲0.0239.21 ▲2.4832.57 ▼3.97
Add New Post /wp-admin/post-new.php1,544 ▲1322.74 ▼0.30755.15 ▲78.5159.20 ▲9.17
Media Library /wp-admin/upload.php1,422 ▲254.21 ▼0.04103.48 ▼3.6277.06 ▲27.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

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
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/speakol/Speakol.php
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/speakol/views/argumentsbox.php on line 2
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/speakol/views/argumentsbox.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function selected() in wp-content/plugins/speakol/views/lang.php:3
    • > PHP Notice
      Undefined variable: disabled in wp-content/plugins/speakol/views/displaysin.php on line 1
    • > PHP Notice
      Undefined variable: disabled in wp-content/plugins/speakol/views/lang.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function selected() in wp-content/plugins/speakol/views/displaysin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/speakol/views/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function checked() in wp-content/plugins/speakol/views/argboxstatus.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

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
There were not plugin tags detected

speakol/Speakol.php 92% from 13 tests

"Speakol" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("speakol.php" instead of "Speakol.php")

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
Good job! No executable or dangerous file extensions detected376 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7788304
CSS110341
JavaScript13031

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity17.00
▷ Minimum class complexity12.00
▷ Maximum class complexity22.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods34
▷ Static methods25.88%
▷ Public methods2882.35%
▷ Protected methods25.88%
▷ Private methods411.76%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
img/logo.png2.97KB0.44KB▼ 85.11%