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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼142.78ms] Passed 4 tests
An overview of server-side resources used by Disabled NewRelic For AMP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 34.04 ▼0.74 |
Dashboard /wp-admin | 3.06 ▲0.01 | 53.96 ▲9.55 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 49.06 ▼0.19 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 85.22 ▼569.52 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 30.67 ▼0.66 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Disabled NewRelic For AMP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,702 ▲106 | 16.33 ▲0.76 | 11.57 ▲0.98 | 46.50 ▼2.28 |
Dashboard /wp-admin | 2,970 ▲36 | 6.08 ▼0.02 | 143.15 ▼8.07 | 104.36 ▼8.22 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.02 | 64.96 ▼0.13 | 82.50 ▼11.37 |
Add New Post /wp-admin/post-new.php | 2,061 ▲457 | 19.48 ▲1.04 | 400.44 ▲24.53 | 113.33 ▲6.86 |
Media Library /wp-admin/upload.php | 1,807 ▼15 | 5.06 ▲0.03 | 149.90 ▼9.11 | 116.53 ▲0.65 |
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 completely, with no zombie files or tables
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disabled-newrelic-for-amp/disabled-newrelic-for-amp.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: newrelic, amp
disabled-newrelic-for-amp/disabled-newrelic-for-amp.php Passed 13 tests
The main PHP script in "Disabled NewRelic For AMP" version 3.0.0 is automatically included on every request by WordPress
56 characters long description:
This is simple plugin disable NewRelic for AMP endpoint.
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
Good job! No executable or dangerous file extensions detected10 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 2 | 13 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.75 |
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 | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin