Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▼146.43ms] Passed 4 tests
Server-side resources used by OneTone Companion
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.08 ▲0.37 | 41.32 ▲19.13 |
Dashboard /wp-admin | 3.31 ▲0.26 | 41.44 ▼5.33 |
Posts /wp-admin/edit.php | 3.43 ▲0.32 | 46.52 ▲1.19 |
Add New Post /wp-admin/post-new.php | 5.68 ▲0.24 | 85.96 ▼572.91 |
Media Library /wp-admin/upload.php | 3.26 ▲0.26 | 28.72 ▼8.66 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_onetone_recent_posts |
Browser metrics Passed 4 tests
An overview of browser requirements for OneTone Companion
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,843 ▲247 | 16.63 ▲1.04 | 14.45 ▲5.99 | 48.13 ▲1.02 |
Dashboard /wp-admin | 3,014 ▲83 | 6.64 ▲0.67 | 136.92 ▼21.90 | 136.46 ▲16.21 |
Posts /wp-admin/edit.php | 2,811 ▲72 | 2.73 ▲0.01 | 72.50 ▲1.53 | 107.24 ▲19.64 |
Add New Post /wp-admin/post-new.php | 1,706 ▲102 | 18.98 ▲0.16 | 372.13 ▲3.24 | 105.95 ▼5.27 |
Media Library /wp-admin/upload.php | 1,873 ▲63 | 5.26 ▲0.22 | 128.88 ▼20.06 | 123.29 ▲11.63 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_onetone_recent_posts
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)
Good news, no errors were detected
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
The following issues need your attention
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/onetone-companion/includes/widget-recent-posts.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/onetone-companion/includes/templates-importer/wordpress-importer.php on line 20
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/onetone-companion/includes/templates-importer/templates-importer.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/onetone-companion/includes/templates-importer/template-directory-tpl.php:3
- > PHP Warning
include_once(): Failed opening 'ABSPATHWPINC/feed.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/onetone-companion/includes/templates-importer/templates-importer.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/onetone-companion/includes/metabox-options.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/onetone-companion/includes/templates-importer/templates-importer.php:9
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/import.php' (include_path='.:/usr/share/php') in wp-content/plugins/onetone-companion/includes/templates-importer/wordpress-importer.php on line 20
- > PHP Warning
include_once(ABSPATHWPINC/feed.php): failed to open stream: No such file or directory in wp-content/plugins/onetone-companion/includes/templates-importer/templates-importer.php on line 2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/import.php): failed to open stream: No such file or directory in wp-content/plugins/onetone-companion/includes/templates-importer/wordpress-importer.php on line 20
- > 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 Passed 29 tests
readme.txt Passed 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
2 plugin tags: theme options, theme templates
onetone-companion/onetone-companion.php Passed 13 tests
The entry point to "OneTone Companion" version 1.1.1 is a PHP file that has certain tags in its header comment area
37 characters long description:
Theme options and templates importer.
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
Everything looks great! No dangerous files found in this plugin3,804 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 719 | 470 | 2,897 |
CSS | 3 | 86 | 4 | 543 |
JavaScript | 3 | 63 | 14 | 364 |
PHP code Passed 2 tests
This is a short overview 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.41 |
Average class complexity | 44.17 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 5.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 105 | |
▷ Static methods | 15 | 14.29% |
▷ Public methods | 94 | 89.52% |
▷ Protected methods | 4 | 3.81% |
▷ Private methods | 7 | 6.67% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
There are no PNG files in this plugin