68% ninja-footers-lite

Code Review | Ninja Footers

WordPress plugin Ninja Footers scored68%from 54 tests.

About plugin

  • Plugin page: ninja-footers-lite
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Nov 3, 2015
  • Latest release: Jun 1, 2016
  • Number of updates: 23
  • Update frequency: every 9.2 days
  • Top authors: samurai9design (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /9,465 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1041.30 ▼0.42
Dashboard /wp-admin3.45 ▲0.1151.95 ▼2.38
Posts /wp-admin/edit.php3.57 ▲0.1750.52 ▲3.90
Add New Post /wp-admin/post-new.php6.03 ▲0.1087.60 ▼15.49
Media Library /wp-admin/upload.php3.37 ▲0.1041.29 ▲9.85
Ninja Footers /wp-admin/edit.php?page=ninja-footers-settings3.3331.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.26 ▼0.101.70 ▼0.0644.13 ▼0.84
Dashboard /wp-admin2,199 ▲185.52 ▼0.13100.82 ▼1.8142.04 ▼1.04
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0539.21 ▲2.3635.75 ▲1.95
Add New Post /wp-admin/post-new.php1,529 ▲323.32 ▲0.05695.24 ▲91.4860.97 ▲7.80
Media Library /wp-admin/upload.php1,407 ▲44.12 ▼0.12102.06 ▲1.5742.84 ▼1.97
Ninja Footers /wp-admin/edit.php?page=ninja-footers-settings1,6656.56131.2163.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:
LanguageFilesBlank linesComment linesLines of code
PHP6120321565
CSS114054
JavaScript13522

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 code0.47
Average class complexity18.80
▷ Minimum class complexity3.00
▷ Maximum class complexity40.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods60
▷ Static methods1321.67%
▷ Public methods3660.00%
▷ Protected methods00.00%
▷ Private methods2440.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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