84% ab-post-signature

Code Review | AB Post Signature

WordPress plugin AB Post Signature scored 84% from 54 tests.

About plugin

  • Plugin page: ab-post-signature
  • Plugin version: 1.00
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.95
  • WordPress version: 6.3.1
  • First release: May 25, 2018
  • Latest release: May 25, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: abjelosevic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 979 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by AB Post Signature
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.35 ▼12.73
Dashboard /wp-admin3.32 ▲0.0146.24 ▼6.04
Posts /wp-admin/edit.php3.37 ▲0.0148.90 ▼0.89
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.08 ▼0.43
Media Library /wp-admin/upload.php3.24 ▲0.0136.00 ▲1.86

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

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

Browser metrics Passed 4 tests

AB Post Signature: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.22 ▼1.165.86 ▲3.5640.35 ▼2.25
Dashboard /wp-admin2,215 ▲275.83 ▲0.7995.67 ▼8.1940.56 ▼5.99
Posts /wp-admin/edit.php2,101 ▲121.99 ▼0.0139.98 ▲2.5635.12 ▲2.57
Add New Post /wp-admin/post-new.php1,544 ▲622.94 ▼0.38597.77 ▼76.6856.93 ▼1.02
Media Library /wp-admin/upload.php1,400 ▲124.21 ▲0.0594.02 ▼11.0142.61 ▼4.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ab-post-signature/ab-post-signature.php:13

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention: The official readme.txt might help

ab-post-signature/ab-post-signature.php Passed 13 tests

The entry point to "AB Post Signature" version 1.00 is a PHP file that has certain tags in its header comment area
53 characters long description:
Plugin allows you to add a signature after every post

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin51 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1181251

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin