Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼288.94ms] Passed 4 tests
This is a short check of server-side resources used by Forefront Div
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.47 | 54.80 ▲3.32 |
Dashboard /wp-admin | 3.84 ▲0.43 | 38.24 ▲4.83 |
Posts /wp-admin/edit.php | 4.07 ▲0.42 | 40.36 ▲3.76 |
Add New Post /wp-admin/post-new.php | 7.37 ▲0.39 | 97.87 ▼1,167.17 |
Media Library /wp-admin/upload.php | 3.78 ▲0.48 | 28.14 ▲4.32 |
Forefront Div /wp-admin/edit.php?post_type=forefront_div_ps | 3.83 | 31.46 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.78 | 26.32 |
Add New /wp-admin/post-new.php?post_type=forefront_div_ps | 3.99 | 39.50 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Forefront Div
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,985 ▲263 | 16.18 ▲0.40 | 12.03 ▲6.32 | 16.93 ▲14.28 |
Dashboard /wp-admin | 2,971 ▲113 | 6.15 ▼0.03 | 120.11 ▼12.56 | 172.49 ▲9.84 |
Posts /wp-admin/edit.php | 2,771 ▲80 | 3.26 ▲0.03 | 64.08 ▼0.29 | 158.97 ▲15.16 |
Add New Post /wp-admin/post-new.php | 1,831 ▲121 | 21.91 ▲1.31 | 466.23 ▲39.09 | 209.98 ▲48.97 |
Media Library /wp-admin/upload.php | 1,781 ▲80 | 5.58 ▲0.07 | 162.10 ▲15.62 | 255.44 ▲68.30 |
Forefront Div /wp-admin/edit.php?post_type=forefront_div_ps | 1,462 | 3.17 | 62.21 | 132.36 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,276 | 2.45 | 53.68 | 124.31 |
Add New /wp-admin/post-new.php?post_type=forefront_div_ps | 1,947 | 4.07 | 101.45 | 145.38 |
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
The plugin uninstalled completely, with no zombie files or tables
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
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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/forefront-div/class-tgm-plugin-activation.php:1883
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/forefront-div/class-tgm-plugin-activation.php:1883
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: front, above, modal, scrolling, div...
forefront-div/pluginlyspeaking-forefrontdiv.php 92% from 13 tests
"Forefront Div" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 ("forefront-div.php" instead of "pluginlyspeaking-forefrontdiv.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
No dangerous file extensions were detected2,385 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 512 | 1,448 | 1,966 |
JavaScript | 1 | 82 | 21 | 394 |
CSS | 1 | 3 | 0 | 25 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 44.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 4.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 5 | 5.32% |
▷ Public methods | 74 | 78.72% |
▷ Protected methods | 20 | 21.28% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/disabled.png | 0.57KB | 0.67KB | 0.00% |
img/closable.png | 1.28KB | 1.24KB | ▼ 2.90% |