Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.76ms] Passed 4 tests
Analyzing server-side resources used by Barcode Reception
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 41.44 ▼1.80 |
Dashboard /wp-admin | 3.40 ▲0.10 | 48.70 ▲0.14 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 45.56 ▲1.17 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 80.53 ▼8.63 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 33.86 ▼0.74 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
barcode_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Barcode Reception
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,982 ▲225 | 14.17 ▼0.19 | 12.23 ▲10.02 | 42.24 ▼6.20 |
Dashboard /wp-admin | 2,230 ▲42 | 5.79 ▲0.89 | 112.96 ▼1.98 | 50.79 ▲1.04 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.05 ▲0.06 | 33.85 ▼0.35 | 41.48 ▼1.04 |
Add New Post /wp-admin/post-new.php | 1,543 ▲9 | 23.29 ▲0.21 | 594.68 ▼120.72 | 45.80 ▼3.94 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.19 ▼0.02 | 93.66 ▼6.61 | 48.40 ▲4.69 |
Barcode 設定 /wp-admin/barcode_menu.php | 26 | 0.44 | 0.07 | 14.64 |
受付済みユーザ一覧 /wp-admin/barcode_users.php | 26 | 0.44 | 0.07 | 5.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 fix the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/barcode-reception/reception-view.php
- > /wp-content/plugins/barcode-reception/barcode-view.php
- > /wp-content/plugins/barcode-reception/entry-users-view.php
- 24× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
require_once(Image/Barcode2/Driver.php): failed to open stream: No such file or directory in wp-content/plugins/barcode-reception/lib/Image/Barcode2/Driver/Code128.php on line 44
- > PHP Fatal error
require_once(): Failed opening required 'Image/Barcode2/Driver.php' (include_path='.:/usr/share/php') in wp-content/plugins/barcode-reception/lib/Image/Barcode2/Driver/Postnet.php on line 38
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/barcode-reception/barcode-reception.php:90
- > PHP Fatal error
Uncaught Error: Class 'BCR' not found in wp-content/plugins/barcode-reception/admin-view.php:11
- > PHP Warning
require_once(Image/Barcode2/Driver.php): failed to open stream: No such file or directory in wp-content/plugins/barcode-reception/lib/Image/Barcode2/Driver/Upca.php on line 26
- > PHP Fatal error
require_once(): Failed opening required 'Image/Barcode2/Writer.php' (include_path='.:/usr/share/php') in wp-content/plugins/barcode-reception/lib/Image/Barcode2.php on line 25
- > PHP Warning
require_once(Image/Barcode2/Driver.php): failed to open stream: No such file or directory in wp-content/plugins/barcode-reception/lib/Image/Barcode2/Driver/Upce.php on line 25
- > PHP Warning
require_once(Image/Barcode2/Driver.php): failed to open stream: No such file or directory in wp-content/plugins/barcode-reception/lib/Image/Barcode2/Driver/Ean13.php on line 25
- > PHP Notice
Trying to get property 'img_url' of non-object in wp-content/plugins/barcode-reception/barcode-view.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'Image/Barcode2/Driver.php' (include_path='.:/usr/share/php') in wp-content/plugins/barcode-reception/lib/Image/Barcode2/Driver/Int25.php on line 25
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/barcode_menu.php
- > Network (severe)
wp-admin/barcode_menu.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/barcode_users.php
- > Network (severe)
wp-admin/barcode_users.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid url: ""
barcode-reception/barcode-reception.php Passed 13 tests
The main PHP script in "Barcode Reception" version 0.4.0 is automatically included on every request by WordPress
75 characters long description:
WordPressをバーコード受付システムにするプラグインです
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
Success! There were no dangerous files found in this plugin3,184 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 371 | 1,122 | 1,992 |
CSS | 3 | 36 | 54 | 1,103 |
JavaScript | 1 | 7 | 0 | 89 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 5.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 7 | 6.93% |
▷ Public methods | 88 | 87.13% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 12.87% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 23 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 23 | 100.00% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/blitzer/images/ui-bg_flat_0_333333_40x100.png | 0.21KB | 0.08KB | ▼ 60.45% |
lib/blitzer/images/ui-bg_flat_65_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |
lib/blitzer/images/ui-bg_highlight-hard_100_eeeeee_1x100.png | 0.25KB | 0.14KB | ▼ 43.65% |
lib/blitzer/images/ui-bg_highlight-soft_15_cc0000_1x100.png | 0.31KB | 0.18KB | ▼ 43.48% |
lib/blitzer/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |