Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.40MB] [CPU: ▼5.65ms] Passed 4 tests
Analyzing server-side resources used by The Connectome
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 44.12 ▲1.79 |
Dashboard /wp-admin | 3.60 ▲0.30 | 61.52 ▲5.35 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 62.04 ▲11.15 |
Add New Post /wp-admin/post-new.php | 3.44 ▼2.45 | 51.40 ▼40.88 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 55.76 ▲23.28 |
The Connectome /wp-admin/options-general.php?page=connectome-options | 3.51 | 46.89 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
connectome-options-options-storage |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for The Connectome
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.10 ▼0.63 | 4.15 ▲2.07 | 41.96 ▼5.97 |
Dashboard /wp-admin | 2,216 ▲36 | 6.09 ▲0.46 | 87.17 ▼5.26 | 39.99 ▲2.16 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.52 ▲0.52 | 41.14 ▲0.21 | 35.73 ▼0.17 |
Add New Post /wp-admin/post-new.php | 1,534 ▼1 | 23.41 ▼1.10 | 659.62 ▲25.52 | 70.00 ▲3.36 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.76 ▲0.59 | 100.11 ▼1.24 | 44.62 ▼1.03 |
The Connectome /wp-admin/options-general.php?page=connectome-options | 1,006 | 2.35 | 31.09 | 29.81 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function Connectome\\add_action() in wp-content/plugins/the-connectome/interfaces/rest_api-hooks.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function Connectome\\add_action() in wp-content/plugins/the-connectome/interfaces/rest_api-hooks.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function Connectome\\add_shortcode() in wp-content/plugins/the-connectome/shortcodes/graph-container.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function Connectome\\add_action() in wp-content/plugins/the-connectome/data/data-hooks.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function Connectome\\add_action() in wp-content/plugins/the-connectome/data/data-hooks.php:51
- > PHP Fatal error
Uncaught Error: Class 'Connectome\\OptionStorage' not found in wp-content/plugins/the-connectome/interfaces/admin/options-page.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function Connectome\\add_action() in wp-content/plugins/the-connectome/enqueue/enqueue.php:5
- > 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/options-general.php?page=connectome-options
- > Javascript (severe) in unknown
/wp-content/plugins/the-connectome/enqueue/js/vue_connectome_build.js 10:112070 Uncaught TypeError: Cannot read properties of null (reading 'nodes')
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Donate link: Please fix this invalid URI: "none"
the-connectome/connectome.php 69% from 13 tests
This is the main PHP file of "The Connectome" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 216 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("the-connectome.php" instead of "connectome.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,094 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 182 | 684 | 1,087 |
JavaScript | 1 | 0 | 5 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 10 | 13.51% |
▷ Public methods | 67 | 90.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 9.46% |
Functions | 25 | |
▷ Named functions | 14 | 56.00% |
▷ Anonymous functions | 11 | 44.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin