Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/knowledge-graph/index.php+62
Undefined variable: sql
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.83ms] Passed 4 tests
Server-side resources used by Knowledge graph
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.35 ▼3.36 |
Dashboard /wp-admin | 3.34 ▼0.00 | 51.97 ▼22.96 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 52.87 ▲3.78 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 99.88 ▼7.65 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.77 ▼1.35 |
Knowledge Graph /wp-admin/tools.php?page=knowledgegraph | 3.24 | 29.77 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_knowledgegraph |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Knowledge graph: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 14.66 ▲0.30 | 1.81 ▼0.42 | 42.18 ▼1.80 |
Dashboard /wp-admin | 2,201 ▲21 | 5.49 ▼0.27 | 84.42 ▼11.61 | 39.92 ▲0.53 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.97 ▼0.06 | 39.89 ▲2.71 | 37.72 ▲0.95 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 22.94 ▼0.17 | 641.76 ▼42.75 | 54.68 ▲2.91 |
Media Library /wp-admin/upload.php | 1,406 ▲12 | 4.21 ▼0.03 | 97.34 ▼2.32 | 44.66 ▲0.55 |
Knowledge Graph /wp-admin/tools.php?page=knowledgegraph | 1,690 | 2.36 | 29.49 | 51.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_knowledgegraph
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/knowledge-graph/index.php:64
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Tags: No tags were detected
knowledge-graph/index.php 92% from 13 tests
The principal PHP file in "Knowledge graph" v. 5.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("knowledge-graph.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin324 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 27 | 23 | 270 |
CSS | 1 | 1 | 11 | 54 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin