83% ye-old-pirate

Code Review | Ye Old Pirate

WordPress plugin Ye Old Pirate scored83%from 54 tests.

About plugin

  • Plugin page: ye-old-pirate
  • Plugin version: 1.05
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.10-5.8
  • WordPress version: 6.3.1
  • First release: Jun 15, 2017
  • Latest release: Jul 11, 2021
  • Number of updates: 8
  • Update frequency: every 185.9 days
  • Top authors: andybrookestar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /622 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Ye Old Pirate
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.53 ▲4.63
Dashboard /wp-admin3.31 ▲0.0152.37 ▲2.60
Posts /wp-admin/edit.php3.37 ▲0.0151.04 ▼0.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.55 ▼22.45
Media Library /wp-admin/upload.php3.24 ▲0.0136.47 ▼1.91

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

Browser metrics Passed 4 tests

A check of browser resources used by Ye Old Pirate
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.31 ▲0.041.77 ▲0.0544.22 ▼0.09
Dashboard /wp-admin2,192 ▲155.52 ▼0.0085.08 ▼12.4635.70 ▼9.11
Posts /wp-admin/edit.php2,100 ▲32.00 ▲0.0233.74 ▼1.3638.19 ▲1.31
Add New Post /wp-admin/post-new.php1,526 ▼022.89 ▼0.26662.22 ▼18.0554.45 ▲4.53
Media Library /wp-admin/upload.php1,400 ▼04.22 ▼0.0195.05 ▼10.6243.94 ▼3.09

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ye-old-pirate/Ye-old-pirate.php:96

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #2 (The screenshot description corresponds to screenshot-2.(png|jpg|jpeg|gif).), #3 (The screenshot description corresponds to screenshot-3.(png|jpg|jpeg|gif).)
  • Donate link: Invalid url: ""
The official readme.txt might help

ye-old-pirate/Ye-old-pirate.php 92% from 13 tests

The entry point to "Ye Old Pirate" version 1.05 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ye-old-pirate.php" instead of "Ye-old-pirate.php")

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
Good job! No executable or dangerous file extensions detected65 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1241065

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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
Namespaces0
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin