Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼9.45ms] Passed 4 tests
A check of server-side resources used by New Relic Browser by rtCamp
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.32 ▼1.25 |
Dashboard /wp-admin | 3.37 ▲0.02 | 49.04 ▼17.75 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 47.31 ▲0.11 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 86.04 ▼18.91 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.40 ▲5.11 |
New Relic Browser /wp-admin/options-general.php?page=new-relic-browser | 3.28 | 34.10 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for New Relic Browser by rtCamp
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲50 | 14.80 ▲0.49 | 1.82 ▼0.03 | 43.57 ▲2.22 |
Dashboard /wp-admin | 2,220 ▲40 | 5.92 ▲0.28 | 102.07 ▲12.19 | 43.05 ▼1.44 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.35 ▲0.35 | 36.42 ▼0.52 | 32.56 ▼2.23 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.53 ▼0.21 | 679.75 ▼20.44 | 37.06 ▼24.31 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.45 ▲0.23 | 101.87 ▼10.55 | 43.45 ▼4.16 |
New Relic Browser /wp-admin/options-general.php?page=new-relic-browser | 1,002 | 2.08 | 27.71 | 28.12 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Almost there! Just fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/rt-newrelic-browser/tests/bootstrap.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/rt-newrelic-browser/admin/new-relic-admin.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rt-newrelic-browser/NewRelicBrowser.php:30
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/rt-newrelic-browser/tests/test-relicform.php:3
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/rt-newrelic-browser/tests/bootstrap.php on line 6
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: javascript monitoring, new relic wordpress mu, new relic browser for wordpress, new relic wordpress multisite, new relic wordpress...
rt-newrelic-browser/NewRelicBrowser.php 92% from 13 tests
The main PHP file in "New Relic Browser by rtCamp" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rt-newrelic-browser.php" instead of "NewRelicBrowser.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,845 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 99 | 113 | 787 |
CSS | 2 | 24 | 38 | 662 |
Bourne Again Shell | 2 | 35 | 15 | 172 |
JavaScript | 1 | 18 | 5 | 93 |
Bourne Shell | 1 | 15 | 4 | 59 |
Markdown | 1 | 31 | 0 | 58 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 20.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 26.51KB | 8.99KB | ▼ 66.08% |
assets/screenshot-3.png | 27.86KB | 10.55KB | ▼ 62.15% |
assets/icon-128x128.png | 7.52KB | 2.80KB | ▼ 62.76% |
assets/screenshot-4.png | 29.10KB | 11.08KB | ▼ 61.93% |
assets/screenshot-1.png | 22.86KB | 7.88KB | ▼ 65.56% |