83% admin-bar-edit-links-for-gravity-forms

Code Review | Admin Bar Edit Links for Gravity Forms

WordPress plugin Admin Bar Edit Links for Gravity Forms scored83%from 54 tests.

About plugin

  • Plugin page: admin-bar-edit-li...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5+
  • WordPress version: 6.3.1
  • First release: Jul 27, 2016
  • Latest release: Jul 20, 2016
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: gn_themes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,278 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.21ms] Passed 4 tests

An overview of server-side resources used by Admin Bar Edit Links for Gravity Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.59 ▲0.03
Dashboard /wp-admin3.31 ▲0.0150.79 ▼1.32
Posts /wp-admin/edit.php3.36 ▲0.0045.93 ▼5.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.71 ▼17.59
Media Library /wp-admin/upload.php3.23 ▲0.0039.17 ▲2.63

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Bar Edit Links for Gravity Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.25 ▼0.321.82 ▲0.1943.70 ▲1.94
Dashboard /wp-admin2,195 ▲185.54 ▼0.1185.01 ▼8.0036.98 ▼1.45
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0238.99 ▲0.2636.59 ▼5.20
Add New Post /wp-admin/post-new.php1,526 ▼022.91 ▼0.16692.94 ▲36.2654.89 ▼1.44
Media Library /wp-admin/upload.php1,400 ▼04.23 ▼0.0299.31 ▼6.8742.81 ▼1.59

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

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

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 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/admin-bar-edit-links-for-gravity-forms/admin-bar-edit-links-for-gravity-forms.php:174

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 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed: The official readme.txt might help

admin-bar-edit-links-for-gravity-forms/admin-bar-edit-links-for-gravity-forms.php 92% from 13 tests

The main PHP file in "Admin Bar Edit Links for Gravity Forms" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin71 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1397271

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods5
▷ Static methods480.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin