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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.05ms] Passed 4 tests
Analyzing server-side resources used by NinjaTeam Header Footer Custom Code
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.42 ▲3.01 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.86 ▲1.63 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 51.27 ▲0.61 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 89.99 ▼5.44 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.77 ▲3.94 |
Header Footer Code /wp-admin/options-general.php?page=njt-header-footer | 3.26 | 38.89 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for NinjaTeam Header Footer Custom Code
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲189 | 15.06 ▲0.69 | 1.79 ▼0.07 | 41.86 ▲5.54 |
Dashboard /wp-admin | 2,365 ▲182 | 6.86 ▲1.95 | 124.79 ▲1.70 | 36.88 ▼10.75 |
Posts /wp-admin/edit.php | 2,274 ▲185 | 3.82 ▲1.78 | 53.94 ▲15.88 | 35.96 ▲1.01 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.72 ▲0.42 | 600.33 ▼111.68 | 34.86 ▼29.16 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.58 ▲0.37 | 83.17 ▼23.79 | 41.20 ▼5.84 |
Header Footer Code /wp-admin/options-general.php?page=njt-header-footer | 1,290 | 3.85 | 55.11 | 36.52 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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 fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/header-footer-code/index.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/header-footer-code/njt-header-footer-injection.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/header-footer-code/view/setting.php:3
- > 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 on the user side
Optimizations
Plugin configuration 90% 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
6 plugin tags: custom code, footer, google analytics, header, custom css...
header-footer-code/njt-header-footer-injection.php 77% from 13 tests
The main PHP script in "NinjaTeam Header Footer Custom Code" version 1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("header-footer-code.php" instead of "njt-header-footer-injection.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 plugin10,236 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 1,126 | 1,032 | 9,793 |
CSS | 2 | 43 | 27 | 315 |
PHP | 3 | 83 | 32 | 128 |
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.00 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 10.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin