94% abg-rich-pins

Code Review | ABG Rich Pins

WordPress plugin ABG Rich Pins scored 94% from 54 tests.

About plugin

  • Plugin page: abg-rich-pins
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.6
  • WordPress version: 5.9.2
  • First release: Aug 7, 2013
  • Latest release: Aug 21, 2013
  • Number of updates: 7
  • Update frequency: every 2.1 days
  • Top authors: antoniobg (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active / 3,489 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.82MB] [CPU: ▼314.92ms] Passed 4 tests

This is a short check of server-side resources used by ABG Rich Pins
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.1759.91 ▲0.23
Dashboard /wp-admin3.53 ▲0.1236.42 ▼1.19
Posts /wp-admin/edit.php3.76 ▲0.1246.20 ▲6.29
Add New Post /wp-admin/post-new.php3.35 ▼3.6331.08 ▼1,249.16
Media Library /wp-admin/upload.php3.41 ▲0.1125.25 ▼9.57

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

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

Browser metrics Passed 4 tests

Checking browser requirements for ABG Rich Pins
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,879 ▲12516.33 ▲0.669.03 ▲0.822.24 ▼0.46
Dashboard /wp-admin2,893 ▲326.03 ▼0.15119.61 ▼13.18154.50 ▼10.59
Posts /wp-admin/edit.php2,693 ▲23.25 ▲0.0166.23 ▲1.54145.53 ▲1.84
Add New Post /wp-admin/post-new.php2,489 ▲82123.42 ▲5.34383.59 ▼26.27176.54 ▲21.51
Media Library /wp-admin/upload.php1,695 ▼35.60 ▲0.08139.31 ▼1.07190.46 ▼0.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
The following issues need your attention
  • 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/abg-rich-pins/abg-rich-pins.php:39

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Screenshots: Screenshot #1 (metabox) image missing
You can look at the official readme.txt

abg-rich-pins/abg-rich-pins.php Passed 13 tests

The main PHP script in "ABG Rich Pins" version 1.1 is automatically included on every request by WordPress
67 characters long description:
Designed to help users to implement and customize Rich Pins easily.

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
No dangerous file extensions were detected674 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP15832583
JavaScript11574
CSS221217

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions10
▷ Named functions10100.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
There were not PNG files found in your plugin