84% signature-one

Code Review | Signature One

WordPress plugin Signature One scored84%from 54 tests.

About plugin

  • Plugin page: signature-one
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: May 31, 2016
  • Latest release: Jan 4, 2017
  • Number of updates: 10
  • Update frequency: every 21.8 days
  • Top authors: rootabout (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

A check of server-side resources used by Signature One
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.74 ▼3.31
Dashboard /wp-admin3.34 ▲0.0455.25 ▲7.29
Posts /wp-admin/edit.php3.45 ▲0.1055.10 ▲7.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.76 ▲1.75
Media Library /wp-admin/upload.php3.24 ▲0.0139.37 ▲6.42

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Signature One
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲1,04814.90 ▲0.582.10 ▲0.2144.79 ▼9.57
Dashboard /wp-admin3,167 ▲9796.64 ▲0.83133.79 ▲15.6442.89 ▼2.77
Posts /wp-admin/edit.php3,070 ▲9813.63 ▲1.6353.22 ▲14.4335.30 ▲0.84
Add New Post /wp-admin/post-new.php7,398 ▲5,87820.58 ▼2.78871.09 ▲237.9054.18 ▼4.86
Media Library /wp-admin/upload.php2,206 ▲8154.25 ▲0.0480.27 ▼18.2846.91 ▲1.61

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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
Good news, no errors were detected

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
Please fix the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/signature-one/signature-one.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/signature-one/abExport.php:58
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/signature-one/signature-one.php on line 14
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/signature-one/signature-one.php on line 14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (General details page), #2 (Individual post settings)
The official readme.txt is a good inspiration

signature-one/signature-one.php 92% from 13 tests

Analyzing the main PHP file in "Signature One" version 1.1.5
It is important to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin411 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25067411

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions12
▷ Named functions12100.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
2 PNG files occupy 0.48MB with 0.35MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png213.49KB56.10KB▼ 73.72%
screenshot-1.png274.79KB73.20KB▼ 73.36%