84% admin-bar-edit-page-links

Code Review | Admin Bar Edit Content Links

WordPress plugin Admin Bar Edit Content Links scored84%from 54 tests.

About plugin

  • Plugin page: admin-bar-edit-pa...
  • Plugin version: 1.4.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.0
  • WordPress version: 6.3.1
  • First release: Dec 10, 2013
  • Latest release: Jul 7, 2022
  • Number of updates: 31
  • Update frequency: every 101.1 days
  • Top authors: brettshumaker (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

400+ active /9,225 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.21ms] Passed 4 tests

Analyzing server-side resources used by Admin Bar Edit Content Links
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0639.14 ▲0.10
Dashboard /wp-admin3.36 ▲0.0646.08 ▼3.40
Posts /wp-admin/edit.php3.41 ▲0.0648.52 ▼2.04
Add New Post /wp-admin/post-new.php5.94 ▲0.0593.47 ▼7.48
Media Library /wp-admin/upload.php3.29 ▲0.0636.80 ▲5.73
Admin Bar Edit Content Links /wp-admin/options-general.php?page=admin_bar_edit_page_links3.2530.74

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
bs_abep_settings
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Admin Bar Edit Content Links
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲11613.21 ▼1.161.68 ▲0.0140.11 ▼2.77
Dashboard /wp-admin2,235 ▲464.85 ▼0.09108.17 ▲3.1141.58 ▼1.44
Posts /wp-admin/edit.php2,118 ▲292.06 ▲0.0540.65 ▼1.1435.58 ▼1.67
Add New Post /wp-admin/post-new.php1,537 ▲2323.15 ▲5.66611.60 ▼63.8654.79 ▲2.38
Media Library /wp-admin/upload.php1,420 ▲354.23 ▲0.0295.93 ▼7.6742.63 ▼0.16
Admin Bar Edit Content Links /wp-admin/options-general.php?page=admin_bar_edit_page_links8292.0424.7131.10

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • bs_abep_settings
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 2× 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/admin-bar-edit-page-links/admin/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/admin-bar-edit-page-links/admin-bar-edit-page-links.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: page, admin bar, page links, edit page

admin-bar-edit-page-links/admin-bar-edit-page-links.php 92% from 13 tests

This is the main PHP file of "Admin Bar Edit Content Links" version 1.4.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 190 characters long)

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 detected266 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP26437209
CSS16036
PO File11321

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.37
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/edit-page-icon.png3.27KB1.64KB▼ 49.91%