84% abg-rich-pins

Code Review | ABG Rich Pins

WordPress plugin ABG Rich Pins scored84%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: 6.3.1
  • 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

70+ active /3,962 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.59MB] [CPU: ▼20.89ms] Passed 4 tests

An overview of server-side resources used by ABG Rich Pins
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1241.63 ▼0.55
Dashboard /wp-admin3.43 ▲0.0851.89 ▼8.15
Posts /wp-admin/edit.php3.48 ▲0.1246.58 ▼6.27
Add New Post /wp-admin/post-new.php3.21 ▼2.6836.43 ▼68.59
Media Library /wp-admin/upload.php3.35 ▲0.1235.87 ▲0.42

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ABG Rich Pins
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲14314.01 ▼0.378.87 ▲6.9543.47 ▲7.20
Dashboard /wp-admin2,204 ▲166.03 ▲1.15105.51 ▲0.4139.32 ▼5.74
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0134.56 ▼6.3733.33 ▼1.80
Add New Post /wp-admin/post-new.php6,902 ▲5,37221.90 ▲3.51848.91 ▲227.2960.95 ▼0.81
Media Library /wp-admin/upload.php1,386 ▼24.23 ▲0.0195.83 ▼5.1842.53 ▼0.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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)
Even though no errors were found, this is by no means 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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > 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 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (metabox) image missing
You can look at the official readme.txt

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

"ABG Rich Pins" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for 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 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin674 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP15832583
JavaScript11574
CSS221217

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
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

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