Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼2.66ms] Passed 4 tests
This is a short check of server-side resources used by Image Copytrack
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.25 ▼2.09 |
Dashboard /wp-admin | 3.62 ▲0.27 | 49.54 ▼9.84 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 53.59 ▲6.35 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 97.15 ▼5.06 |
Media Library /wp-admin/upload.php | 3.48 ▲0.24 | 42.89 ▲8.36 |
Dashboard /wp-admin/admin.php?page=meowapps-main-menu | 3.65 | 61.73 |
Copytrack /wp-admin/admin.php?page=mct_settings-menu | 3.44 | 34.18 |
Server storage [IO: ▲1.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 184 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Image Copytrack
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲127 | 14.77 ▲0.39 | 1.82 ▲0.11 | 37.98 ▼3.53 |
Dashboard /wp-admin | 2,273 ▲85 | 6.27 ▲0.40 | 128.82 ▲24.97 | 40.06 ▼4.49 |
Posts /wp-admin/edit.php | 2,159 ▲67 | 3.15 ▲1.15 | 53.86 ▲14.67 | 35.24 ▼0.04 |
Add New Post /wp-admin/post-new.php | 1,574 ▲60 | 18.39 ▲0.99 | 683.27 ▲7.85 | 36.76 ▼16.08 |
Media Library /wp-admin/upload.php | 1,465 ▲77 | 5.56 ▲1.33 | 106.50 ▲8.73 | 46.87 ▲5.82 |
Dashboard /wp-admin/admin.php?page=meowapps-main-menu | 5,510 | 3.88 | 96.40 | 98.83 |
Copytrack /wp-admin/admin.php?page=mct_settings-menu | 942 | 4.30 | 70.11 | 28.04 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 59× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/image-copytrack/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:8
- > PHP Fatal error
require(): Failed opening required 'MCT_PATH/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/image-copytrack/classes/core.php on line 5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/image-copytrack/vendor/guzzlehttp/psr7/src/Stream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/image-copytrack/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/image-copytrack/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/image-copytrack/vendor/guzzlehttp/psr7/src/Request.php:15
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/image-copytrack/vendor/guzzlehttp/psr7/src/ServerRequest.php:27
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/image-copytrack/vendor/guzzlehttp/psr7/src/FnStream.php:15
- > PHP Fatal error
Uncaught Error: Class 'MeowCommon_Admin' not found in wp-content/plugins/image-copytrack/classes/admin.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/image-copytrack/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=meowapps-main-menu
- > Network (severe)
index.php/wp-json/meow-common/v1/all_settings/ - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=meowapps-main-menu
- > Console-api (severe) in unknown
/wp-content/plugins/image-copytrack/app/index.js?ver=1657623818 0:151568 "[NekoError] JsonFetcher" "/index.php/wp-json/meow-common/v1/all_settings/" Object
- > GET request to /wp-admin/admin.php?page=mct_settings-menu
- > Network (severe)
index.php/wp-json/image-copytrack/v1/pending - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=mct_settings-menu
- > Network (severe)
index.php/wp-json/image-copytrack/v1/account/ - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: copytrack, legal, photography, scan, copyright
image-copytrack/copytrack.php 77% from 13 tests
"Image Copytrack" version 1.2.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("image-copytrack.php" instead of "copytrack.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected13,916 lines of code in 157 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 128 | 2,101 | 5,742 | 9,610 |
Markdown | 13 | 1,158 | 0 | 3,494 |
JSON | 12 | 0 | 0 | 791 |
make | 1 | 4 | 0 | 9 |
YAML | 1 | 0 | 0 | 7 |
JavaScript | 2 | 0 | 24 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 12.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 85 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 85 | 100.00% |
▷ Final classes | 34 | 40.00% |
Methods | 806 | |
▷ Static methods | 152 | 18.86% |
▷ Public methods | 691 | 85.73% |
▷ Protected methods | 4 | 0.50% |
▷ Private methods | 111 | 13.77% |
Functions | 129 | |
▷ Named functions | 33 | 25.58% |
▷ Anonymous functions | 96 | 74.42% |
Constants | 69 | |
▷ Global constants | 6 | 8.70% |
▷ Class constants | 63 | 91.30% |
▷ Public constants | 52 | 82.54% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 compressed PNG files occupy 0.28MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
common/img/meow-lightbox.png | 23.16KB | 24.17KB | 0.00% |
common/img/wplr-sync.png | 24.44KB | 25.67KB | 0.00% |
common/img/social-engine.png | 32.81KB | 34.18KB | 0.00% |
common/img/meow-analytics.png | 26.08KB | 27.72KB | 0.00% |
common/img/contact-form-block.png | 32.83KB | 35.02KB | 0.00% |