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)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.92 ▼2.04 |
Dashboard /wp-admin | 3.35 ▲0.04 | 43.53 ▼0.35 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 44.89 ▼3.10 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.53 ▼10.31 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.51 ▲2.56 |
About /wp-admin/admin.php?page=gal_about | 4.36 | 3,704.21 |
Dashboard /wp-admin/admin.php?page=gal_menu | 3.66 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 13.26 ▼1.11 | 1.69 ▲0.08 | 39.48 ▲1.20 |
Dashboard /wp-admin | 2,231 ▲45 | 5.83 ▲0.88 | 95.88 ▼9.21 | 77.62 ▲38.43 |
Posts /wp-admin/edit.php | 2,117 ▲25 | 2.03 ▲0.04 | 34.81 ▼5.18 | 33.98 ▼1.94 |
Add New Post /wp-admin/post-new.php | 1,691 ▲166 | 22.27 ▼0.82 | 751.24 ▲110.78 | 56.22 ▼5.77 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.18 ▼0.07 | 101.47 ▼4.11 | 76.55 ▲30.47 |
About /wp-admin/admin.php?page=gal_about | 933 | 2.01 | 26.01 | 27.65 |
Dashboard /wp-admin/admin.php?page=gal_menu | 943 | 2.07 | 24.86 | 24.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 49 | 28 | 194 |
CSS | 1 | 7 | 1 | 19 |
JavaScript | 2 | 2 | 4 | 8 |
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 code | 0.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/twitter-icon.png | 1.14KB | 0.42KB | ▼ 63.32% |
images/facebook-icon.png | 1.36KB | 0.57KB | ▼ 58.35% |
images/galland-icon_32.png | 2.00KB | 1.31KB | ▼ 34.28% |
images/galland-icon_64.png | 2.95KB | 1.94KB | ▼ 34.15% |
images/galland-icon_16.png | 1.44KB | 0.69KB | ▼ 51.76% |