Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.77ms] Passed 4 tests
Analyzing server-side resources used by Creative Commons Tagger
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.08 ▼1.57 |
Dashboard /wp-admin | 3.36 ▲0.06 | 55.26 ▼1.24 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 52.75 ▲5.18 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 86.91 ▼16.44 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 41.22 ▲0.19 |
Creative Commons Tagger /wp-admin/options-general.php?page=creative-commons-tagger/creative-commons-tagger.php | 3.25 | 36.95 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Creative Commons Tagger
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.44 ▲0.15 | 1.83 ▼0.96 | 43.37 ▼0.37 |
Dashboard /wp-admin | 2,225 ▲25 | 4.88 ▼0.94 | 110.97 ▲10.15 | 42.43 ▼2.15 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.03 | 33.26 ▼4.61 | 34.61 ▼2.19 |
Add New Post /wp-admin/post-new.php | 1,548 ▲3 | 23.09 ▼0.11 | 662.91 ▼44.18 | 53.08 ▼6.00 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.26 ▲0.05 | 97.10 ▼30.09 | 39.84 ▼13.94 |
Creative Commons Tagger /wp-admin/options-general.php?page=creative-commons-tagger/creative-commons-tagger.php | 813 | 2.06 | 25.02 | 28.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/creative-commons-tagger/creative-commons-tagger.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/creative-commons-tagger/custom_medias_fields.php:5
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: license, creative commons, images, cc
creative-commons-tagger/creative-commons-tagger.php Passed 13 tests
This is the main PHP file of "Creative Commons Tagger" version 0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
84 characters long description:
Taggs wp-caption with creative commons licensing information saved in custom fields.
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
No dangerous file extensions were detected1,486 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 1 | 121 | 0 | 454 |
CSS | 4 | 96 | 22 | 447 |
PHP | 2 | 76 | 56 | 306 |
SVG | 1 | 0 | 0 | 206 |
PO File | 1 | 23 | 26 | 66 |
JavaScript | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 44.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 8.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 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 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected