Benchmarks
Plugin footprint 83% 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.17MB] [CPU: ▲0.86ms] Passed 4 tests
This is a short check of server-side resources used by Media License
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.19 | 42.07 ▼1.04 |
Dashboard /wp-admin | 3.55 ▲0.20 | 51.51 ▲4.16 |
Posts /wp-admin/edit.php | 3.60 ▲0.20 | 53.57 ▲3.19 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.14 | 90.28 ▼2.80 |
Media Library /wp-admin/upload.php | 3.41 ▲0.14 | 41.01 ▲4.10 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Media License
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲33 | 14.63 ▲0.28 | 2.03 ▲0.11 | 40.28 ▼7.40 |
Dashboard /wp-admin | 2,198 ▲18 | 5.57 ▼0.11 | 86.21 ▼1.06 | 38.11 ▼5.80 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▲0.02 | 38.74 ▲5.25 | 35.17 ▼0.89 |
Add New Post /wp-admin/post-new.php | 1,532 ▲3 | 23.59 ▼0.04 | 677.04 ▲11.42 | 52.29 ▼0.20 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.14 ▼0.06 | 98.05 ▼3.38 | 44.29 ▲1.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/media-license/templates/blockx__media-license--list-of-licenses__editor.php
- > /wp-content/plugins/media-license/templates/blockx__media-license--list-of-licenses.php
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/media-license/templates/blockx__media-license--list-of-licenses.php on line 12
- > PHP Notice
Undefined variable: content in wp-content/plugins/media-license/templates/blockx__media-license--list-of-licenses__editor.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\WordPress\\Headless\\Extensions\\AbsPostExtensionPost' not found in wp-content/plugins/media-license/classes/Headless/FeaturedMedia.php:10
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\WordPress\\BlockX\\Blocks\\_BlockType' not found in wp-content/plugins/media-license/classes/BlockX/ListOfLicenses.php:14
- > PHP Notice
Undefined variable: media_license_author in wp-content/plugins/media-license/templates/media-license-caption.tpl.php on line 27
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/media-license/templates/blockx__media-license--list-of-licenses__editor.php on line 12
- > PHP Notice
Trying to get property 'captions' of non-object in wp-content/plugins/media-license/templates/blockx__media-license--list-of-licenses__editor.php on line 12
- > PHP Notice
Undefined variable: license in wp-content/plugins/media-license/templates/media-license-caption.tpl.php on line 48
- > PHP Notice
Undefined variable: content in wp-content/plugins/media-license/templates/blockx__media-license--list-of-licenses.php on line 12
- > PHP Fatal error
Uncaught Error: Call to a member function hasLicensePath() on null in wp-content/plugins/media-license/templates/media-license-caption.tpl.php:48
- > PHP Warning
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 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: extension, license, media
media-license/media-license.php 92% from 13 tests
The main PHP script in "Media License" version 1.6.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,160 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 281 | 524 | 971 |
JavaScript | 2 | 35 | 34 | 130 |
PO File | 1 | 18 | 18 | 59 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 6 | 7.79% |
▷ Public methods | 75 | 97.40% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.60% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 21 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 21 | 100.00% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin