Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.50MB] [CPU: ▲10.91ms] Passed 4 tests
An overview of server-side resources used by Personal QR Message
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.97 ▲1.50 | 53.07 ▲8.99 |
Dashboard /wp-admin | 4.80 ▲1.50 | 66.38 ▲13.24 |
Posts /wp-admin/edit.php | 4.85 ▲1.49 | 61.36 ▲11.71 |
Add New Post /wp-admin/post-new.php | 7.42 ▲1.53 | 108.70 ▲14.57 |
Media Library /wp-admin/upload.php | 4.73 ▲1.49 | 46.00 ▲9.68 |
Server storage [IO: ▲104.06MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
These are issues you should consider
- Filesystem usage must be lower than 25MB (currently using 104.06MB)
Filesystem: 972 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Personal QR Message
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲170 | 14.65 ▲0.28 | 41.79 ▲39.78 | 60.53 ▲15.64 |
Dashboard /wp-admin | 2,217 ▲43 | 5.68 ▲0.03 | 91.51 ▼11.87 | 41.22 ▼6.77 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.19 ▲0.19 | 40.23 ▲2.55 | 36.64 ▼2.49 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.50 ▲0.57 | 703.96 ▲52.72 | 51.29 ▼11.87 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.30 ▲0.07 | 97.47 ▼10.67 | 42.99 ▼0.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'remove_plugin' not found or invalid function name
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
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
Good news, no errors were detected
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
Please fix the following items
- 466× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/personal-qr-message/vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/BinaryDriverTestCase.php:11
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\TrueType\\TableDirectoryEntry' not found in wp-content/plugins/personal-qr-message/vendor/phenx/php-font-lib/src/FontLib/OpenType/TableDirectoryEntry.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\ReaderInterface' not found in wp-content/plugins/personal-qr-message/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiReader.php:9
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Cache\\Adapter\\AbstractTagAwareAdapter' not found in wp-content/plugins/personal-qr-message/vendor/symfony/cache/Adapter/FilesystemTagAwareAdapter.php:25
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/personal-qr-message/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/personal-qr-message/vendor/chillerlan/php-qrcode/examples/text.php on line 15
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/personal-qr-message/vendor/psr/http-client/src/RequestExceptionInterface.php:14
- > PHP Fatal error
Uncaught Error: Class 'FFMpeg\\Filters\\AdvancedMedia\\AbstractComplexFilter' not found in wp-content/plugins/personal-qr-message/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/Filters/AdvancedMedia/CustomComplexFilter.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/personal-qr-message/vendor/neutron/temporary-filesystem/tests/Neutron/TemporaryFilesystem/Tests/ManagerTest.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Cache\\Marshaller\\MarshallerInterface' not found in wp-content/plugins/personal-qr-message/vendor/symfony/cache/Marshaller/TagAwareMarshaller.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Process\\Exception\\RuntimeException' not found in wp-content/plugins/personal-qr-message/vendor/symfony/process/Exception/ProcessTimedOutException.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Coming soon) image missing
personal-qr-message/personal-qr-message.php Passed 13 tests
The main PHP script in "Personal QR Message" version 1.0 is automatically included on every request by WordPress
63 characters long description:
WordPress plugin to create a personal QR message for the buyer.
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin87,054 lines of code in 842 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 713 | 17,463 | 40,841 | 74,019 |
Markdown | 54 | 2,174 | 0 | 6,370 |
JSON | 39 | 0 | 0 | 3,911 |
CSS | 6 | 342 | 52 | 2,013 |
YAML | 11 | 70 | 9 | 294 |
XML | 7 | 8 | 2 | 240 |
HTML | 2 | 26 | 0 | 154 |
make | 2 | 12 | 0 | 27 |
SVG | 4 | 0 | 0 | 11 |
Dockerfile | 1 | 5 | 2 | 10 |
Bourne Shell | 1 | 2 | 0 | 3 |
JavaScript | 2 | 0 | 1 | 2 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 652)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 17.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 807.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 652.00 |
Code structure | ||
---|---|---|
Namespaces | 123 | |
Interfaces | 99 | |
Traits | 19 | |
Classes | 557 | |
▷ Abstract classes | 35 | 6.28% |
▷ Concrete classes | 522 | 93.72% |
▷ Final classes | 101 | 19.35% |
Methods | 4,668 | |
▷ Static methods | 454 | 9.73% |
▷ Public methods | 3,914 | 83.85% |
▷ Protected methods | 402 | 8.61% |
▷ Private methods | 352 | 7.54% |
Functions | 432 | |
▷ Named functions | 145 | 33.56% |
▷ Anonymous functions | 287 | 66.44% |
Constants | 430 | |
▷ Global constants | 9 | 2.09% |
▷ Class constants | 421 | 97.91% |
▷ Public constants | 374 | 88.84% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/chillerlan/php-qrcode/examples/example_image.png | 2.23KB | 1.09KB | ▼ 50.94% |
vendor/dompdf/dompdf/lib/res/broken_image.png | 0.60KB | 0.47KB | ▼ 22.33% |
vendor/chillerlan/php-qrcode/examples/example_svg.png | 15.55KB | 6.70KB | ▼ 56.90% |
vendor/chillerlan/php-qrcode/examples/octocat.png | 2.41KB | 2.46KB | 0.00% |