83% 3-sheep-signatures

Code Review | 3 Sheep Signatures

WordPress plugin 3 Sheep Signatures scored 83% from 54 tests.

About plugin

  • Plugin page: 3-sheep-signatures
  • Plugin version: 1.00
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.3.1
  • WordPress version: 5.9.2
  • First release: Apr 4, 2012
  • Latest release: Apr 4, 2012
  • Number of updates: 5
  • Update frequency: every 41.8 days
  • Top authors: 3sheep (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,220 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.02MB] [CPU: ▼307.75ms] Passed 4 tests

Analyzing server-side resources used by 3 Sheep Signatures
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0176.62 ▼41.54
Dashboard /wp-admin3.41 ▲0.0037.64 ▲2.10
Posts /wp-admin/edit.php3.64 ▲0.0038.54 ▲0.76
Add New Post /wp-admin/post-new.php6.88 ▼0.0990.66 ▼1,189.24
Media Library /wp-admin/upload.php3.30 ▲0.0024.97 ▼0.96

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 2 new options
New WordPress options
tssig_data0
tssig_count

Browser metrics Passed 4 tests

An overview of browser requirements for 3 Sheep Signatures
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲916.18 ▲0.895.95 ▲0.082.17 ▼0.25
Dashboard /wp-admin2,885 ▲286.13 ▼0.02126.61 ▼11.10171.47 ▲12.93
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0063.55 ▲1.96147.17 ▲5.15
Add New Post /wp-admin/post-new.php1,711 ▲5020.74 ▲4.50455.95 ▲12.56212.43 ▲3.81
Media Library /wp-admin/upload.php1,695 ▼35.46 ▼0.07153.85 ▲12.19262.54 ▲69.39

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
  • Zombie WordPress options were found after uninstall: 2 options
    • tssig_count
    • tssig_data0

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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_option() in wp-content/plugins/3-sheep-signatures/3SheepSig.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (screenshot-1.png - The settings panel) image not found
Please take inspiration from this readme.txt

3-sheep-signatures/3SheepSig.php 85% from 13 tests

This is the main PHP file of "3 Sheep Signatures" version 1.00, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("3-sheep-signatures.php" instead of "3SheepSig.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 156 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
Good job! No executable or dangerous file extensions detected119 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13512119

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
Screenshot-1.png54.68KB23.00KB▼ 57.93%