Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.36ms] Passed 4 tests
This is a short check of server-side resources used by WPS Mypace CTT Adapter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.24 ▼0.16 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.07 ▼5.02 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.67 ▼2.90 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 78.06 ▼21.35 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.93 ▲1.45 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPS Mypace CTT Adapter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.21 ▼1.42 | 1.74 ▲0.05 | 44.15 ▲2.94 |
Dashboard /wp-admin | 2,206 ▲15 | 4.88 ▼1.01 | 100.75 ▲0.45 | 38.16 ▼7.95 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▼0.01 | 39.48 ▲4.54 | 36.73 ▲2.51 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 18.56 ▲0.18 | 611.16 ▲4.57 | 58.89 ▲8.83 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.24 ▲0.00 | 98.27 ▲2.03 | 42.63 ▼2.81 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wps-mypace-ctt-adapter/bin/install-dependencies.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wps-mypace-ctt-adapter/tests/test-sample.php:11
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/wps-mypace-ctt-adapter/tests/bootstrap.php on line 18
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/wps-mypace-ctt-adapter/tests/bootstrap.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wps-mypace-ctt-adapter/wps-mypace-ctt-adapter.php:28
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wps-mypace-ctt-adapter/tests/test-ogp.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: seo, title
wps-mypace-ctt-adapter/wps-mypace-ctt-adapter.php 77% from 13 tests
The entry point to "WPS Mypace CTT Adapter" version 0.2.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Git Repository: An alternative Git repository was detected
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin360 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 38 | 71 | 163 |
Bourne Shell | 1 | 21 | 7 | 99 |
YAML | 1 | 7 | 0 | 39 |
XML | 2 | 2 | 0 | 31 |
JSON | 1 | 0 | 0 | 28 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 2.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 13 | |
▷ Static methods | 2 | 15.38% |
▷ Public methods | 10 | 76.92% |
▷ Protected methods | 1 | 7.69% |
▷ Private methods | 2 | 15.38% |
Functions | 5 | |
▷ Named functions | 5 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin