94% ab-show-thumbs-on-post

Code Review | AB Show Thumbs On Post

WordPress plugin AB Show Thumbs On Post scored 94% from 54 tests.

About plugin

  • Plugin page: ab-show-thumbs-on...
  • Plugin version: 1.00
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.95
  • WordPress version: 5.9.2
  • First release: Apr 17, 2018
  • Latest release: Apr 18, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: abjelosevic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 605 total downloads


Plugin footprint Passed 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: ▼297.47ms] Passed 4 tests

This is a short check of server-side resources used by AB Show Thumbs On Post
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0153.41 ▲4.92
Dashboard /wp-admin3.41 ▲0.0132.72 ▲0.66
Posts /wp-admin/edit.php3.65 ▲0.0135.65 ▼6.80
Add New Post /wp-admin/post-new.php6.91 ▼0.0992.04 ▼1,182.10
Media Library /wp-admin/upload.php3.30 ▲0.0022.89 ▼1.65

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by AB Show Thumbs On Post
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4116.24 ▲0.196.25 ▲0.682.30 ▲0.02
Dashboard /wp-admin2,895 ▲346.14 ▼0.02116.31 ▼19.48155.34 ▼1.63
Posts /wp-admin/edit.php2,704 ▲193.24 ▲0.0060.81 ▼1.00136.52 ▼4.10
Add New Post /wp-admin/post-new.php1,690 ▼2718.99 ▼2.13410.81 ▼6.64155.33 ▼0.33
Media Library /wp-admin/upload.php1,701 ▼05.54 ▲0.03138.96 ▲2.56182.03 ▼4.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just 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/ab-show-thumbs-on-post/ab-show-thumbs-on-post-plugin.php:24

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

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: counter, post, featured, view

ab-show-thumbs-on-post/ab-show-thumbs-on-post-plugin.php 92% from 13 tests

The primary PHP file in "AB Show Thumbs On Post" version 1.00 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ab-show-thumbs-on-post.php" instead of "ab-show-thumbs-on-post-plugin.php")

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
No dangerous file extensions were detected14 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
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
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 functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin