Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.16MB] [CPU: ▼279.59ms] Passed 4 tests
Analyzing server-side resources used by Featured Image Licence
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.11 | 27.98 ▲3.90 |
Dashboard /wp-admin | 3.10 ▲0.04 | 46.39 ▲4.00 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 44.27 ▲4.19 |
Add New Post /wp-admin/post-new.php | 4.69 ▼0.74 | 63.68 ▼1,121.77 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 32.48 ▼4.49 |
Featured Image Licence Options /wp-admin/options-general.php?page=swfil-plugin-options | 2.98 | 29.56 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Featured Image Licence: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲96 | 16.33 ▲0.78 | 7.84 ▼0.85 | 53.79 ▲6.74 |
Dashboard /wp-admin | 2,938 ▲82 | 5.89 ▲0.02 | 144.84 ▲7.37 | 104.55 ▼0.00 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.69 ▲0.02 | 68.33 ▼1.93 | 98.28 ▲6.31 |
Add New Post /wp-admin/post-new.php | 1,656 ▼195 | 18.76 ▲1.32 | 385.22 ▲19.01 | 113.35 ▲6.59 |
Media Library /wp-admin/upload.php | 1,774 ▲2 | 5.04 ▲0.04 | 170.20 ▼0.05 | 136.47 ▲3.66 |
Featured Image Licence Options /wp-admin/options-general.php?page=swfil-plugin-options | 1,005 | 2.10 | 61.75 | 90.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=swfil-plugin-options
- > Warning in wp-content/plugins/featured-image-licence/admin/SW_Featured_Image_Licence_Options.php+93
asort() expects parameter 1 to be array, null given
- > GET request to /wp-admin/options-general.php?page=swfil-plugin-options
- > Warning in wp-content/plugins/featured-image-licence/admin/SW_Featured_Image_Licence_Options.php+94
Invalid argument supplied for foreach()
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/featured-image-licence/featured-image-licence.php:14
- > PHP Fatal error
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 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
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== featured-image-licence ===
)
featured-image-licence/featured-image-licence.php Passed 13 tests
The main PHP script in "Featured Image Licence" version 1.1 is automatically included on every request by WordPress
70 characters long description:
Inserts an attribution into the post where a CC licensed image is used
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin137 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 31 | 67 | 137 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin