Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼144.37ms] Passed 4 tests
Analyzing server-side resources used by Forensiq Shortcode
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 28.29 ▲3.07 |
Dashboard /wp-admin | 3.06 ▼0.00 | 34.61 ▼7.44 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 34.96 ▼0.50 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 73.38 ▼571.47 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 24.79 ▲1.95 |
Forensiq Shortcode /wp-admin/options-general.php?page=forensiq-shortcode/Forensiq_Shortcode.php | 2.98 | 23.44 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Forensiq Shortcode: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,673 ▲46 | 15.93 ▼0.10 | 4.89 ▼1.91 | 75.01 ▼1.40 |
Dashboard /wp-admin | 2,935 ▲36 | 6.15 ▼0.00 | 114.21 ▼14.24 | 165.79 ▼5.12 |
Posts /wp-admin/edit.php | 2,745 ▲5 | 3.22 ▼0.00 | 63.04 ▼1.56 | 128.83 ▼15.31 |
Add New Post /wp-admin/post-new.php | 3,818 ▲75 | 19.15 ▲0.07 | 419.36 ▼12.23 | 160.43 ▲0.24 |
Media Library /wp-admin/upload.php | 1,757 ▲8 | 5.49 ▼0.01 | 138.02 ▲0.20 | 194.07 ▲6.96 |
Forensiq Shortcode /wp-admin/options-general.php?page=forensiq-shortcode/Forensiq_Shortcode.php | 1,222 | 2.37 | 53.68 | 116.17 |
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
Uninstall script ran successfully
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/forensiq-shortcode/Forensiq_Shortcode.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were 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
Please fix the following attributes:
- Screenshots: Screenshot #1 (Settings...) image not found
forensiq-shortcode/Forensiq_Shortcode.php 92% from 13 tests
The main PHP file in "Forensiq Shortcode" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("forensiq-shortcode.php" instead of "Forensiq_Shortcode.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
Success! There were no dangerous files found in this plugin157 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 8 | 11 | 138 |
JavaScript | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 73.11KB | 21.05KB | ▼ 71.21% |