84% gallandbe-wp-tools

Code Review | Galland.be WP tools

WordPress plugin Galland.be WP tools scored 84% from 54 tests.

About plugin

  • Plugin page: gallandbe-wp-tools
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Apr 12, 2013
  • Latest release: Jun 11, 2014
  • Number of updates: 36
  • Update frequency: every 11.8 days
  • Top authors: Galland.be (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,797 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.95ms] 75% from 4 tests

Analyzing server-side resources used by Galland.be WP tools
It is recommended to improve the following
  • CPU: You should keep total CPU usage under 500.00ms (currently 3,704.21ms on /wp-admin/admin.php?page=gal_about)
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.92 ▼2.04
Dashboard /wp-admin3.35 ▲0.0443.53 ▼0.35
Posts /wp-admin/edit.php3.40 ▲0.0444.89 ▼3.10
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.53 ▼10.31
Media Library /wp-admin/upload.php3.27 ▲0.0439.51 ▲2.56
About /wp-admin/admin.php?page=gal_about4.363,704.21
Dashboard /wp-admin/admin.php?page=gal_menu3.6636.26

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Galland.be WP tools
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.26 ▼1.111.69 ▲0.0839.48 ▲1.20
Dashboard /wp-admin2,231 ▲455.83 ▲0.8895.88 ▼9.2177.62 ▲38.43
Posts /wp-admin/edit.php2,117 ▲252.03 ▲0.0434.81 ▼5.1833.98 ▼1.94
Add New Post /wp-admin/post-new.php1,691 ▲16622.27 ▼0.82751.24 ▲110.7856.22 ▼5.77
Media Library /wp-admin/upload.php1,413 ▲254.18 ▼0.07101.47 ▼4.1176.55 ▲30.47
About /wp-admin/admin.php?page=gal_about9332.0126.0127.65
Dashboard /wp-admin/admin.php?page=gal_menu9432.0724.8624.57

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • theysaidso_admin_options
    • galland_spamfight
    • galland_spamfightcounter
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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 fix the following
  • 2× 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/gallandbe-wp-tools/includes/comments.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gallandbe-wp-tools/galland.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: spam, spam free, spamfighter, gallandbe, cms for companies...

gallandbe-wp-tools/galland.php 92% from 13 tests

"Galland.be WP tools" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gallandbe-wp-tools.php" instead of "galland.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
No dangerous file extensions were detected221 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP54928194
CSS17119
JavaScript2248

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/twitter-icon.png1.14KB0.42KB▼ 63.32%
images/facebook-icon.png1.36KB0.57KB▼ 58.35%
images/galland-icon_32.png2.00KB1.31KB▼ 34.28%
images/galland-icon_64.png2.95KB1.94KB▼ 34.15%
images/galland-icon_16.png1.44KB0.69KB▼ 51.76%