83% my-admin-bookmarks

Code Review | Admin Bookmarks

WordPress plugin Admin Bookmarks scored83%from 54 tests.

About plugin

  • Plugin page: my-admin-bookmarks
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.5
  • WordPress version: 6.3.1
  • First release: Feb 21, 2014
  • Latest release: Apr 21, 2018
  • Number of updates: 5
  • Update frequency: every 304.0 days
  • Top authors: bradvin (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

600+ active /4,232 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼6.33ms] Passed 4 tests

Server-side resources used by Admin Bookmarks
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0047.11 ▼3.61
Dashboard /wp-admin3.52 ▲0.2152.61 ▲0.97
Posts /wp-admin/edit.php3.63 ▲0.2751.34 ▲1.05
Add New Post /wp-admin/post-new.php6.11 ▲0.2386.43 ▼19.91
Media Library /wp-admin/upload.php3.44 ▲0.2137.38 ▼2.77

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Bookmarks
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲9113.20 ▼1.094.96 ▲2.5842.31 ▼1.00
Dashboard /wp-admin2,258 ▲555.87 ▲1.00101.91 ▼16.2939.48 ▼3.66
Posts /wp-admin/edit.php2,108 ▲82.13 ▲0.1645.22 ▲9.0134.05 ▼0.50
Add New Post /wp-admin/post-new.php1,530 ▼223.39 ▲0.40649.21 ▲19.9492.70 ▼3.80
Media Library /wp-admin/upload.php1,399 ▼44.22 ▼0.0297.91 ▼27.6242.26 ▼8.44

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Exception: This settings view has not been included correctly! in wp-content/plugins/my-admin-bookmarks/includes/foopluginbase/views/settings.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: admin, bookmarks, bookmark, shortcut, productivity

my-admin-bookmarks/admin-bookmarks.php 77% from 13 tests

This is the main PHP file of "Admin Bookmarks" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("my-admin-bookmarks.php" instead of "admin-bookmarks.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,089 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP13310369905
JavaScript3419134
CSS111047
Markdown1103

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity28.50
▷ Minimum class complexity9.00
▷ Maximum class complexity64.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods53
▷ Static methods11.89%
▷ Public methods5196.23%
▷ Protected methods00.00%
▷ Private methods23.77%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected