Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.35MB] [CPU: ▼3.28ms] Passed 4 tests
An overview of server-side resources used by Credit Tracker
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 43.15 ▼1.97 |
Dashboard /wp-admin | 3.69 ▲0.38 | 47.60 ▼2.48 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 51.88 ▲4.09 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 88.94 ▼12.77 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 40.12 ▲4.55 |
Credit Tracker /wp-admin/options-general.php?page=credit-tracker | 3.51 | 43.77 |
Server storage [IO: ▲1.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
CREDITTRACKER_OPTIONS |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_credit_tracker_table_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Credit Tracker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲116 | 13.60 ▼0.79 | 5.78 ▲3.85 | 41.95 ▼3.06 |
Dashboard /wp-admin | 2,210 ▲19 | 4.83 ▼0.99 | 107.33 ▲5.05 | 38.54 ▼4.38 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▲0.06 | 41.10 ▲1.53 | 34.54 ▼2.76 |
Add New Post /wp-admin/post-new.php | 1,537 ▼0 | 22.92 ▲4.28 | 682.04 ▲33.15 | 67.17 ▲11.04 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.30 ▲0.07 | 96.13 ▼8.34 | 41.63 ▼1.62 |
Credit Tracker /wp-admin/options-general.php?page=credit-tracker | 1,101 | 1.72 | 25.70 | 36.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_credit_tracker_table_widget
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CTParser' not found in wp-content/plugins/credit-tracker/php/parser/istockphoto.php:9
- > PHP Fatal error
Uncaught Error: Class 'CTParser' not found in wp-content/plugins/credit-tracker/php/parser/shutterstock.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/credit-tracker/options.php:17
- > PHP Fatal error
Uncaught Error: Class 'CTParser' not found in wp-content/plugins/credit-tracker/php/parser/freeimages.php:9
- > PHP Fatal error
Uncaught Error: Class 'CTParser' not found in wp-content/plugins/credit-tracker/php/parser/fotolia.php:9
- > PHP Fatal error
Uncaught Error: Class 'CTParser' not found in wp-content/plugins/credit-tracker/php/parser/pixelio.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/credit-tracker/credit-tracker-widgets.php:17
- > PHP Fatal error
Uncaught Error: Class 'CTParser' not found in wp-content/plugins/credit-tracker/php/parser/unsplash.php:9
- > PHP Fatal error
Uncaught Error: Class 'CTParser' not found in wp-content/plugins/credit-tracker/php/parser/adobestock.php:9
- > PHP Fatal error
Uncaught Error: Class 'CTParser' not found in wp-content/plugins/credit-tracker/php/parser/flickr.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 24 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #1 (Adjust Credit Tracker Settings from within the WordPress CMS), #2 (Credit Tracker Integration within the WordPress Media Library), #3 (Media Library Overview with Credit Tracker Details), #4 (Example layouts and styles for the Credit Tracker Table when integrated within the main site via ShortCode), #5 (Custom Image Caption Shortcode to reflect Credit Information)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== credit-tracker ===
)
credit-tracker/credit-tracker.php Passed 13 tests
"Credit Tracker" version 1.1.17's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
65 characters long description:
A simple way to show credits for the images used on your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,814 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 432 | 717 | 1,903 |
PO File | 4 | 170 | 234 | 469 |
CSS | 2 | 53 | 9 | 214 |
Bourne Shell | 1 | 30 | 30 | 106 |
JavaScript | 2 | 6 | 4 | 47 |
Markdown | 1 | 23 | 0 | 42 |
YAML | 1 | 0 | 0 | 28 |
INI | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.07 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 1 | 6.67% |
▷ Concrete classes | 14 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 6 | 12.00% |
▷ Public methods | 29 | 58.00% |
▷ Protected methods | 14 | 28.00% |
▷ Private methods | 7 | 14.00% |
Functions | 65 | |
▷ Named functions | 65 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 23 | |
▷ Global constants | 4 | 17.39% |
▷ Class constants | 19 | 82.61% |
▷ Public constants | 19 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 1.05MB with 0.62MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 97.36KB | 32.99KB | ▼ 66.12% |
assets/icon-256x256.png | 2.16KB | 1.47KB | ▼ 31.86% |
screenshot-5.png | 129.10KB | 43.67KB | ▼ 66.18% |
screenshot-2.png | 97.79KB | 31.49KB | ▼ 67.80% |
screenshot-3.png | 76.74KB | 26.73KB | ▼ 65.16% |