Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.60ms] Passed 4 tests
Server-side resources used by Ninja Footers
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.10 | 41.30 ▼0.42 |
Dashboard /wp-admin | 3.45 ▲0.11 | 51.95 ▼2.38 |
Posts /wp-admin/edit.php | 3.57 ▲0.17 | 50.52 ▲3.90 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.10 | 87.60 ▼15.49 |
Media Library /wp-admin/upload.php | 3.37 ▲0.10 | 41.29 ▲9.85 |
Ninja Footers /wp-admin/edit.php?page=ninja-footers-settings | 3.33 | 31.23 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
ninja-footers-settings |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
ninja_footers_lite_version |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ninja Footers
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.26 ▼0.10 | 1.70 ▼0.06 | 44.13 ▼0.84 |
Dashboard /wp-admin | 2,199 ▲18 | 5.52 ▼0.13 | 100.82 ▼1.81 | 42.04 ▼1.04 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.05 | 39.21 ▲2.36 | 35.75 ▲1.95 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.32 ▲0.05 | 695.24 ▲91.48 | 60.97 ▲7.80 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.12 ▼0.12 | 102.06 ▲1.57 | 42.84 ▼1.97 |
Ninja Footers /wp-admin/edit.php?page=ninja-footers-settings | 1,665 | 6.56 | 131.21 | 63.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/ninja-footers-lite/class.NF_Options.php+91
Illegal string offset 'name'
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- ninja_footers_lite_version
- ninja-footers-settings
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/edit.php?page=ninja-footers-settings
- > Notice in wp-content/plugins/ninja-footers-lite/class.NF_Page_Settings.php+136
Trying to get property 'content' of non-object
- > GET request to /wp-admin/edit.php?page=ninja-footers-settings
- > Warning in wp-content/plugins/ninja-footers-lite/class.NF_Page_Settings.php+284
count(): Parameter must be an array or an object that implements Countable
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ninja-footers-lite/ninja-footers-lite.php
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)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: call to action, custom post, append to post, bottom of post, about the author...
ninja-footers-lite/ninja-footers-lite.php Passed 13 tests
The entry point to "Ninja Footers" version 0.2.0 is a PHP file that has certain tags in its header comment area
41 characters long description:
A great tool for appending to your posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin641 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 120 | 321 | 565 |
CSS | 1 | 14 | 0 | 54 |
JavaScript | 1 | 3 | 5 | 22 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 18.80 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 60 | |
▷ Static methods | 13 | 21.67% |
▷ Public methods | 36 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 24 | 40.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected