99% gp-elements-admin-link

Code Review | GP Elements Admin Link

WordPress plugin GP Elements Admin Link scored 99% from 54 tests.

About plugin

  • Plugin page: gp-elements-admin...
  • Plugin version: 1.4.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.7.2
  • WordPress version: 5.8.1
  • First release: Apr 4, 2019
  • Latest release: May 18, 2021
  • Number of updates: 13
  • Update frequency: every 59.7 days
  • Top authors: westcoastdigital (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

40+ active / 758 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼138.48ms] Passed 4 tests

A check of server-side resources used by GP Elements Admin Link
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1530.55 ▲8.68
Dashboard /wp-admin3.09 ▲0.0439.50 ▼1.91
Posts /wp-admin/edit.php3.15 ▲0.0440.98 ▲6.67
Add New Post /wp-admin/post-new.php5.46 ▲0.0390.16 ▼558.98
Media Library /wp-admin/upload.php3.04 ▲0.0334.28 ▲0.30

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

GP Elements Admin Link: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.83 ▲0.328.73 ▼3.4044.49 ▼11.26
Dashboard /wp-admin2,970 ▲365.90 ▼0.07135.23 ▼26.77110.14 ▼4.13
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0163.14 ▼8.5492.12 ▲1.89
Add New Post /wp-admin/post-new.php1,672 ▼018.77 ▼0.03361.95 ▼4.73106.44 ▼9.34
Media Library /wp-admin/upload.php1,810 ▲35.00 ▼0.02150.10 ▼5.51119.25 ▼8.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed: The official readme.txt might help

gp-elements-admin-link/gp-elements-admin.php 92% from 13 tests

The principal PHP file in "GP Elements Admin Link" v. 1.4.3 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gp-elements-admin-link.php" instead of "gp-elements-admin.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
Success! There were no dangerous files found in this plugin187 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14263187

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and 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.png1.21KB0.79KB▼ 34.68%