Benchmarks
Plugin footprint 65% from 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.09MB] [CPU: ▲18.03ms] Passed 4 tests
This is a short check of server-side resources used by Input Scanner
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 67.41 ▲22.43 |
Dashboard /wp-admin | 3.38 ▲0.07 | 68.35 ▲17.05 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 72.12 ▲21.33 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 106.80 ▲13.08 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 59.44 ▲20.66 |
Server storage [IO: ▲1.49MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_inputscanner_settings |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Input Scanner
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲122 | 16.22 ▲1.59 | 9.15 ▲7.17 | 40.44 ▼8.87 |
Dashboard /wp-admin | 2,223 ▲46 | 6.71 ▲1.15 | 95.11 ▲2.92 | 40.00 ▼4.07 |
Posts /wp-admin/edit.php | 2,132 ▲29 | 3.84 ▲1.81 | 51.25 ▲14.39 | 38.27 ▲3.31 |
Add New Post /wp-admin/post-new.php | 1,565 ▲39 | 19.65 ▲2.22 | 678.26 ▲17.82 | 37.90 ▼22.13 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 6.40 ▲2.19 | 106.62 ▲7.07 | 46.74 ▲5.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_inputscanner_settings
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% 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 0% 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
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/input-scanner/include/httpsWarning.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/input-scanner/include/pluginsettingsform.php on line 22
- > PHP Notice
Undefined variable: inputScanner_formValues in wp-content/plugins/input-scanner/include/pluginsettingsform.php on line 22
- > PHP Fatal error
Uncaught Error: Call to a member function fetchPost() on null in wp-content/plugins/input-scanner/include/settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/input-scanner/class/tabs.class.php:79
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/input-scanner/include/pluginsettingsform.php:105
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: input, wordpress, barcode, scanner, plugin...
input-scanner/index.php 77% from 13 tests
"Input Scanner" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "5.2")
- Requires PHP: Required version must be the same as the one declared in readme.txt ("5.2.4" instead of "7.2")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("input-scanner.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin6,573 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 390 | 4 | 6,114 |
PHP | 6 | 49 | 109 | 444 |
JavaScript | 2 | 0 | 32 | 15 |
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.34 |
Average class complexity | 20.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 33.33% |
Functions | 11 | |
▷ Named functions | 3 | 27.27% |
▷ Anonymous functions | 8 | 72.73% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin