84% all-in-one-bookmarking-button

Code Review | All-in-one Bookmarking Button

WordPress plugin All-in-one Bookmarking Button scored84%from 54 tests.

About plugin

  • Plugin page: all-in-one-bookma...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: Jun 5, 2009
  • Latest release: Nov 29, 2019
  • Number of updates: 6
  • Update frequency: every 638.2 days
  • Top authors: kingkongco (83.33%)necoda (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /10,982 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.22ms] Passed 4 tests

A check of server-side resources used by All-in-one Bookmarking Button
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0552.99 ▲11.24
Dashboard /wp-admin3.33 ▲0.0247.44 ▼3.90
Posts /wp-admin/edit.php3.38 ▲0.0252.93 ▲3.33
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.55 ▼1.99
Media Library /wp-admin/upload.php3.25 ▲0.0238.62 ▲1.70

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

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

Browser metrics Passed 4 tests

All-in-one Bookmarking Button: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲4314.20 ▼0.012.02 ▲0.1342.52 ▼2.69
Dashboard /wp-admin2,195 ▲155.62 ▼0.0496.32 ▲10.5439.22 ▼4.51
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0539.10 ▼1.4636.16 ▲3.42
Add New Post /wp-admin/post-new.php1,526 ▼023.13 ▼0.05691.77 ▼14.1064.82 ▲2.65
Media Library /wp-admin/upload.php1,400 ▼04.25 ▼0.0196.73 ▼10.5944.05 ▼2.47

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 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/all-in-one-bookmarking-button/socialmarker-button.php:122

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: bookmark, bookmarking tool, social bookmarking

all-in-one-bookmarking-button/socialmarker-button.php 92% from 13 tests

The principal PHP file in "All-in-one Bookmarking Button" v. 1.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("all-in-one-bookmarking-button.php" instead of "socialmarker-button.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected197 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26496197

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/facebook.png0.84KB0.77KB▼ 9.05%
icons/twitter.png1.39KB1.36KB▼ 1.62%
icons/linkedin.png1.05KB0.97KB▼ 7.47%
icons/socialmarker.png4.40KB0.63KB▼ 85.69%
icons/pinterest.png2.02KB2.02KB0.00%