84% speak-pirate

Code Review | Speak Pirate

WordPress plugin Speak Pirate scored84%from 54 tests.

About plugin

  • Plugin page: speak-pirate
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Jan 18, 2013
  • Latest release: May 17, 2016
  • Number of updates: 8
  • Update frequency: every 151.9 days
  • Top authors: ericjuden (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /855 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by Speak Pirate
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.23 ▲2.13
Dashboard /wp-admin3.31 ▲0.0146.88 ▼5.47
Posts /wp-admin/edit.php3.37 ▲0.0146.65 ▲0.84
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.68 ▲9.52
Media Library /wp-admin/upload.php3.24 ▲0.0134.39 ▲0.83

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Speak Pirate
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.71 ▼0.671.68 ▼0.2442.88 ▼4.11
Dashboard /wp-admin2,209 ▲275.77 ▼0.1194.98 ▼8.8441.81 ▲1.93
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.0238.70 ▲2.6735.17 ▼0.36
Add New Post /wp-admin/post-new.php1,533 ▼923.37 ▲5.07606.55 ▼0.1455.25 ▲5.55
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.0292.46 ▼11.8243.75 ▲0.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% 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 50% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/speak-pirate/speak-pirate.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: translation, pirate, language, shortcode, translate

speak-pirate/speak-pirate.php Passed 13 tests

The entry point to "Speak Pirate" version 1.1 is a PHP file that has certain tags in its header comment area
74 characters long description:
translates text in a shortcode into the equivalent text spoken as a pirate

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191823

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin