Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲7.39MB] [CPU: ▼3.85ms] 75% from 4 tests
Server-side resources used by Name: BioDic AWL
Please fix the following
- Extra RAM: Extra memory usage must be kept under 5MB (currently 7.39MB on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 34.28 ▲30.82 | 81.63 ▲38.75 |
Dashboard /wp-admin | 3.38 ▲0.08 | 47.00 ▼0.44 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 49.51 ▲0.75 |
Add New Post /wp-admin/post-new.php | 35.23 ▲29.34 | 70.79 ▼21.71 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.20 ▲5.99 |
Server storage [IO: ▲6.84MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 15 new options
New WordPress options |
---|
widget_theysaidso_widget |
biodic_glossaryTooltip |
widget_recent-comments |
db_upgraded |
biodic_glossaryCaseSensitive |
biodic_glossaryExcerptHover |
can_compress_scripts |
widget_recent-posts |
biodic_glossaryFirstOnly |
biodic_showTitleAttribute |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Name: BioDic AWL
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲183 | 13.63 ▼0.74 | 7.21 ▲5.53 | 45.14 ▼2.92 |
Dashboard /wp-admin | 2,224 ▲39 | 5.85 ▼0.01 | 97.31 ▼4.52 | 38.31 ▼6.61 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.05 ▲0.04 | 36.68 ▲0.21 | 33.74 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,624 ▲82 | 23.63 ▲5.62 | 680.80 ▲73.18 | 48.60 ▼1.79 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.31 ▲0.06 | 96.42 ▼4.32 | 41.34 ▼1.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 15 options in the database
- biodic_glossaryTooltip
- biodic_glossaryProtectedTags
- biodic_showTitleAttribute
- theysaidso_admin_options
- db_upgraded
- biodic_glossaryFirstOnly
- widget_recent-posts
- biodic_glossaryExcerptHover
- biodic_glossaryFilterTooltip
- biodic_glossaryInNewPage
- ...
Smoke tests 50% 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)
Good news, no errors were detected
SRP 0% 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× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/biodic-automatic-word-link/admin_nav.php
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant RED_MENU_OPTION - assumed 'RED_MENU_OPTION' (this will throw an Error in a future version of PHP) in wp-content/plugins/biodic-automatic-word-link/admin_template.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function biodic_showNav() in wp-content/plugins/biodic-automatic-word-link/admin_template.php:3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/biodic-automatic-word-link/admin_nav.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/biodic-automatic-word-link/glossary.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/biodic-automatic-word-link/admin_settings.php:2
- > PHP Notice
Undefined variable: submenus in wp-content/plugins/biodic-automatic-word-link/admin_nav.php on line 5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== Name: BioDic AWL===
)
biodic-automatic-word-link/glossary.php 92% from 13 tests
"Name: BioDic AWL" version 1.5'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: Name the main plugin file the same as the plugin slug ("biodic-automatic-word-link.php" instead of "glossary.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected887 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 89 | 64 | 549 |
JavaScript | 2 | 2 | 16 | 271 |
CSS | 2 | 4 | 1 | 67 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
2 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 129.67KB | 45.31KB | ▼ 65.06% |
screenshot-2.png | 55.20KB | 16.14KB | ▼ 70.75% |