Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.12MB] [CPU: ▲5.43ms] Passed 4 tests
An overview of server-side resources used by Media Copyright
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.61 ▲1.15 | 43.87 ▲6.21 |
Dashboard /wp-admin | 5.62 ▲2.32 | 61.42 ▲14.23 |
Posts /wp-admin/edit.php | 4.50 ▲1.15 | 48.39 ▲3.65 |
Add New Post /wp-admin/post-new.php | 6.97 ▲1.08 | 88.62 ▲3.00 |
Media Library /wp-admin/upload.php | 4.31 ▲1.08 | 41.43 ▲8.85 |
Media-Copyright /wp-admin/tools.php?page=wr-media-copyright | 5.82 | 48.98 |
Server storage [IO: ▲2.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 933 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Media Copyright
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.37 ▲0.02 | 1.69 ▲0.08 | 39.30 ▼4.84 |
Dashboard /wp-admin | 2,203 ▲26 | 5.64 ▼0.04 | 87.80 ▼2.16 | 39.34 ▼2.28 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.18 | 33.68 ▼2.01 | 33.39 ▼3.99 |
Add New Post /wp-admin/post-new.php | 1,534 ▼1 | 23.12 ▲4.86 | 689.10 ▲34.88 | 63.45 ▼8.43 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▲0.00 | 98.12 ▼1.24 | 41.44 ▼2.99 |
Media-Copyright /wp-admin/tools.php?page=wr-media-copyright | 781 | 2.04 | 24.61 | 28.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/weltenretter-media-copyright/wrmc_imagecopyright.php
- 409× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Caster\\ConstStub' not found in wp-content/plugins/weltenretter-media-copyright/vendor/symfony/var-dumper/Caster/LinkStub.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Hamcrest\\Description' not found in wp-content/plugins/weltenretter-media-copyright/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/BaseDescription.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/weltenretter-media-copyright/vendor/twig/twig/src/Node/CheckSecurityCallNode.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/weltenretter-media-copyright/vendor/twig/twig/src/Node/MacroNode.php:22
- > PHP Fatal error
Uncaught Error: Class 'Hamcrest\\AbstractMatcherTest' not found in wp-content/plugins/weltenretter-media-copyright/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Text/StringContainsTest.php:4
- > PHP Fatal error
Uncaught Error: Class 'Hamcrest\\Core\\IsTypeOf' not found in wp-content/plugins/weltenretter-media-copyright/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Type/IsInteger.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Command\\Descriptor\\DumpDescriptorInterface' not found in wp-content/plugins/weltenretter-media-copyright/vendor/symfony/var-dumper/Command/Descriptor/HtmlDescriptor.php:25
- > PHP Fatal error
Uncaught Error: Class 'Mockery\\Matcher\\MatcherAbstract' not found in wp-content/plugins/weltenretter-media-copyright/vendor/mockery/mockery/library/Mockery/Matcher/HasValue.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Hamcrest\\SelfDescribing' not found in wp-content/plugins/weltenretter-media-copyright/vendor/hamcrest/hamcrest-php/tests/Hamcrest/StringDescriptionTest.php:6
- > PHP Fatal error
Uncaught Error: Class 'Hamcrest\\BaseMatcher' not found in wp-content/plugins/weltenretter-media-copyright/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsTypeOf.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: media copyright weltenretter
weltenretter-media-copyright/wrmc_imagecopyright.php 92% from 13 tests
Analyzing the main PHP file in "Media Copyright" version 1.0.2
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("weltenretter-media-copyright.php" instead of "wrmc_imagecopyright.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
It is important to fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/weltenretter-media-copyright/vendor/bin/var-dump-server.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 800 | 9,234 | 15,028 | 41,345 |
Markdown | 24 | 635 | 0 | 1,692 |
JSON | 15 | 5 | 0 | 1,496 |
reStructuredText | 37 | 1,037 | 1,328 | 1,229 |
YAML | 9 | 75 | 1 | 368 |
Twig | 3 | 0 | 0 | 206 |
CSS | 1 | 0 | 0 | 130 |
XML | 5 | 16 | 9 | 79 |
Python | 1 | 70 | 155 | 42 |
JavaScript | 1 | 0 | 0 | 10 |
DOS Batch | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 6.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 318.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 93 | |
Interfaces | 55 | |
Traits | 4 | |
Classes | 721 | |
▷ Abstract classes | 27 | 3.74% |
▷ Concrete classes | 694 | 96.26% |
▷ Final classes | 64 | 9.22% |
Methods | 2,986 | |
▷ Static methods | 470 | 15.74% |
▷ Public methods | 2,506 | 83.92% |
▷ Protected methods | 258 | 8.64% |
▷ Private methods | 222 | 7.43% |
Functions | 335 | |
▷ Named functions | 263 | 78.51% |
▷ Anonymous functions | 72 | 21.49% |
Constants | 162 | |
▷ Global constants | 22 | 13.58% |
▷ Class constants | 140 | 86.42% |
▷ Public constants | 116 | 82.86% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin