83% gb-powerlink-lite

Code Review | GB to Powerlink

WordPress plugin GB to Powerlink scored83%from 54 tests.

About plugin

  • Plugin page: gb-powerlink-lite
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 6.3.1
  • First release: Sep 28, 2017
  • Latest release: Jul 10, 2018
  • Number of updates: 13
  • Update frequency: every 22.2 days
  • Top authors: gb-plugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /5,716 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Analyzing server-side resources used by GB to Powerlink
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.56 ▲2.48
Dashboard /wp-admin3.34 ▲0.0452.86 ▲2.55
Posts /wp-admin/edit.php3.39 ▲0.0352.29 ▲3.64
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.27 ▼0.15
Media Library /wp-admin/upload.php3.26 ▲0.0334.79 ▼5.35

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
These are issues you should consider
  • There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/gb-powerlink-lite/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by GB to Powerlink
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.82 ▲0.451.79 ▼0.2442.20 ▲0.22
Dashboard /wp-admin2,239 ▲364.94 ▲0.08100.72 ▼0.1271.67 ▲27.11
Posts /wp-admin/edit.php2,118 ▲152.04 ▲0.0439.40 ▼1.4533.84 ▼4.68
Add New Post /wp-admin/post-new.php1,561 ▲3518.03 ▲0.50753.99 ▲107.4758.37 ▼0.43
Media Library /wp-admin/upload.php1,415 ▲184.15 ▼0.07101.67 ▼27.8245.43 ▼0.84

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/gb-powerlink-lite/gb-powerlink.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Requires php: Invalid version format
  • Screenshots: These screenshots require images: #1 (http://powerlink.gbweb.co.il/wp-content/uploads/2017/09/1.png), #2 (http://powerlink.gbweb.co.il/wp-content/uploads/2017/09/2.png), #3 (http://powerlink.gbweb.co.il/wp-content/uploads/2017/09/3.png)
The official readme.txt might help

gb-powerlink-lite/gb-powerlink.php 85% from 13 tests

"GB to Powerlink" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gb-powerlink-lite.php" instead of "gb-powerlink.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin236 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12341236

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.65
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%
Functions7
▷ Named functions7100.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
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/gb_admin_menu.png1.49KB0.85KB▼ 43.30%