Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.93MB] [CPU: ▼314.31ms] Passed 4 tests
An overview of server-side resources used by Open Graphite
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▼0.04 | 47.67 ▼6.38 |
Dashboard /wp-admin | 3.45 ▲0.04 | 35.74 ▲3.37 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 44.09 ▲6.56 |
Add New Post /wp-admin/post-new.php | 3.24 ▼3.73 | 27.09 ▼1,249.84 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 25.93 ▼4.38 |
Help /wp-admin/admin.php?page=open-graphite-help | 3.37 | 25.65 |
Open Graphite /wp-admin/admin.php?page=open-graphite-settings | 3.59 | 24.76 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Open Graphite: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,036 ▲282 | 17.38 ▲1.45 | 5.87 ▼0.52 | 2.13 ▼0.29 |
Dashboard /wp-admin | 3,125 ▲271 | 7.85 ▲1.69 | 138.34 ▲9.13 | 175.50 ▲12.28 |
Posts /wp-admin/edit.php | 2,961 ▲273 | 4.66 ▲1.42 | 80.41 ▲18.08 | 154.98 ▲11.20 |
Add New Post /wp-admin/post-new.php | 1,926 ▲236 | 20.87 ▲0.20 | 406.58 ▼22.71 | 206.95 ▲47.26 |
Media Library /wp-admin/upload.php | 1,731 ▲33 | 5.51 ▼0.02 | 110.01 ▼30.70 | 200.95 ▲16.98 |
Help /wp-admin/admin.php?page=open-graphite-help | 1,450 | 4.26 | 67.25 | 144.84 |
Open Graphite /wp-admin/admin.php?page=open-graphite-settings | 2,732 | 4.32 | 71.15 | 320.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=open-graphite-settings
- > Notice in wp-content/plugins/open-graphite/inc/settings-ui.php+317
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=open-graphite-settings
- > Notice in wp-content/plugins/open-graphite/inc/settings-ui.php+359
Undefined variable: license_link
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/open-graphite/_open_graphite.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/open-graphite/inc/preview-links.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 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
5 plugin tags: twitter, thumbnail, facebook, open graph, social
open-graphite/_open_graphite.php 92% from 13 tests
"Open Graphite" version 1.4.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("open-graphite.php" instead of "_open_graphite.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 plugin3,421 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 350 | 62 | 1,343 |
PO File | 2 | 292 | 298 | 1,036 |
Sass | 1 | 214 | 10 | 1,030 |
SVG | 11 | 0 | 0 | 11 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 56.00 |
▷ Minimum class complexity | 56.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 14.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
2 PNG files occupy 0.21MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/help/facebook-debugger.png | 185.70KB | 62.33KB | ▼ 66.43% |
images/help/metabox.png | 33.15KB | 13.40KB | ▼ 59.57% |