Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼13.07ms] Passed 4 tests
This is a short check of server-side resources used by Creative Commons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 44.13 ▼1.53 |
Dashboard /wp-admin | 3.56 ▲0.22 | 52.23 ▼16.75 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 51.91 ▲3.01 |
Add New Post /wp-admin/post-new.php | 5.08 ▼0.81 | 57.69 ▼32.10 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 36.66 ▼1.91 |
Creative Commons /wp-admin/options-general.php?page=cc-admin | 3.45 | 35.57 |
Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 74 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_cc-license-widget |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Creative Commons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲55 | 14.25 ▼0.11 | 1.83 ▼0.00 | 40.16 ▼4.62 |
Dashboard /wp-admin | 2,204 ▲27 | 5.61 ▲0.00 | 89.79 ▼2.74 | 39.21 ▼1.42 |
Posts /wp-admin/edit.php | 2,117 ▲14 | 2.06 ▲0.08 | 42.52 ▲7.42 | 36.20 ▲0.46 |
Add New Post /wp-admin/post-new.php | 6,206 ▲4,678 | 19.13 ▼3.91 | 924.52 ▲226.17 | 56.23 ▼23.55 |
Media Library /wp-admin/upload.php | 1,411 ▲8 | 4.28 ▲0.09 | 100.80 ▲0.30 | 45.71 ▼0.90 |
Creative Commons /wp-admin/options-general.php?page=cc-admin | 1,168 | 1.71 | 26.57 | 36.41 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_cc-license-widget
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/creative-commons/widgets/creativecommons-widget.php:16
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Please describe screenshot #6 in creative-commons/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
creative-commons/creativecommons.php 85% from 13 tests
Analyzing the main PHP file in "Creative Commons" version 2022.09.1
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("creative-commons.php" instead of "creativecommons.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected4,693 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 66 | 65 | 1,384 |
PHP | 5 | 247 | 618 | 1,361 |
JavaScript | 10 | 59 | 246 | 877 |
SVG | 8 | 11 | 7 | 491 |
PO File | 3 | 89 | 108 | 237 |
Sass | 15 | 17 | 1 | 167 |
Markdown | 2 | 71 | 0 | 143 |
YAML | 1 | 0 | 1 | 33 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 51.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 69 | |
▷ Static methods | 2 | 2.90% |
▷ Public methods | 61 | 88.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 11.59% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.38MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 13.71KB | 5.96KB | ▼ 56.53% |
includes/images/by.png | 1.43KB | 1.21KB | ▼ 15.87% |
assets/banner-1544x500.png | 258.94KB | 112.40KB | ▼ 56.59% |
assets/banner-772x250.png | 93.67KB | 36.24KB | ▼ 61.31% |
includes/images/by-nc-nd.png | 1.73KB | 1.47KB | ▼ 15.34% |