Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼8.58ms] Passed 4 tests
Analyzing server-side resources used by Graph Commons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 44.79 ▲2.20 |
Dashboard /wp-admin | 3.38 ▲0.03 | 50.95 ▼14.04 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 47.50 ▼5.93 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 95.58 ▼16.54 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 41.03 ▲3.10 |
Graph Commons /wp-admin/options-general.php?page=graphcommons | 3.27 | 36.78 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Graph Commons: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲26 | 14.46 ▲0.11 | 1.94 ▼0.17 | 43.83 ▲1.18 |
Dashboard /wp-admin | 2,215 ▲41 | 5.63 ▼0.04 | 83.94 ▼16.00 | 43.41 ▼4.47 |
Posts /wp-admin/edit.php | 2,124 ▲27 | 2.02 ▲0.02 | 34.72 ▼3.34 | 34.09 ▼4.73 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 18.24 ▼4.71 | 611.95 ▼92.93 | 81.27 ▲29.08 |
Media Library /wp-admin/upload.php | 1,423 ▲20 | 4.18 ▼0.05 | 96.50 ▼17.13 | 46.11 ▼2.64 |
Graph Commons /wp-admin/options-general.php?page=graphcommons | 828 | 2.04 | 25.72 | 30.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: graph, data vizualisation, big data, publishing, networks...
graph-commons/graphcommons.php 85% from 13 tests
The main PHP script in "Graph Commons" version 1.1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("graph-commons.php" instead of "graphcommons.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected777 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 80 | 12 | 272 |
PHP | 1 | 73 | 41 | 236 |
CSS | 2 | 31 | 1 | 173 |
PO File | 1 | 14 | 17 | 60 |
Markdown | 1 | 22 | 0 | 36 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/gc_nodecard.png | 2.53KB | 1.70KB | ▼ 33.02% |
images/gc_graph-icon-64x64.png | 1.85KB | 0.92KB | ▼ 50.34% |