94% ab-post-signature

Code Review | AB Post Signature

WordPress plugin AB Post Signature scored 94% 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: 5.9.2
  • 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 / 675 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by AB Post Signature
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.4161.38 ▲16.82
Dashboard /wp-admin3.42 ▲0.0138.61 ▼0.21
Posts /wp-admin/edit.php3.66 ▲0.0149.05 ▲7.92
Add New Post /wp-admin/post-new.php6.89 ▼0.08100.09 ▼1,207.27
Media Library /wp-admin/upload.php3.31 ▲0.0129.78 ▲1.93

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by AB Post Signature
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,810 ▲5614.79 ▼0.406.37 ▲0.612.87 ▲0.23
Dashboard /wp-admin2,907 ▲546.13 ▼0.07115.97 ▼26.31155.90 ▼21.48
Posts /wp-admin/edit.php2,706 ▲123.23 ▼0.0164.07 ▲3.93138.91 ▲2.54
Add New Post /wp-admin/post-new.php1,729 ▲3122.55 ▲0.22467.07 ▲50.98170.87 ▼9.87
Media Library /wp-admin/upload.php1,713 ▲185.52 ▼0.01137.59 ▼5.63182.78 ▼75.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

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
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > 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 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed: You can take inspiration from this readme.txt

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

Analyzing the main PHP file in "AB Post Signature" version 1.00
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 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected51 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ 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
There are no PNG files in this plugin