74% ninja-seo-links

Code Review | Ninja SEO Links

WordPress plugin Ninja SEO Links scored74%from 54 tests.

About plugin

  • Plugin page: ninja-seo-links
  • Plugin version: 0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.5
  • WordPress version: 6.3.1
  • First release: Oct 10, 2017
  • Latest release: Oct 10, 2017
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: hyliacom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /681 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.81ms] Passed 4 tests

An overview of server-side resources used by Ninja SEO Links
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.50 ▼0.49
Dashboard /wp-admin3.32 ▲0.0244.30 ▼1.55
Posts /wp-admin/edit.php3.37 ▲0.0148.91 ▲0.77
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.92 ▼13.95
Media Library /wp-admin/upload.php3.24 ▲0.0137.01 ▲4.21
Ninja SEO Links /wp-admin/admin.php?page=ninja-seo-links3.2133.13
Add new /wp-admin/admin.php?page=ninja-seo-links-add3.2131.29

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: 1 new table, 7 new options
New tables
wp_ninja_seo_links
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
ninja_seo_links_db_version
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Ninja SEO Links
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲17913.64 ▼1.015.18 ▲2.9440.55 ▼4.57
Dashboard /wp-admin2,236 ▲455.90 ▲0.01101.27 ▼3.6339.67 ▼1.25
Posts /wp-admin/edit.php2,119 ▲271.99 ▲0.0141.37 ▲0.4936.40 ▲1.84
Add New Post /wp-admin/post-new.php1,541 ▲823.56 ▲0.20684.55 ▲81.1161.76 ▲13.33
Media Library /wp-admin/upload.php1,409 ▲274.17 ▼0.0296.52 ▼7.6241.56 ▲1.26
Ninja SEO Links /wp-admin/admin.php?page=ninja-seo-links1,1142.0331.5632.72
Add new /wp-admin/admin.php?page=ninja-seo-links-add1,0242.1626.9933.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_ninja_seo_links
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • ninja_seo_links_db_version
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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 | 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
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/ninja-seo-links/includes/list.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ninja-seo-links/includes/list.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ninja-seo-links/includes/front.php:6
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/ninja-seo-links/includes/list.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ninja-seo-links/includes/admin.php:11
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/ninja-seo-links/includes/list.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/ninja-seo-links/includes/list.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ninja-seo-links/includes/list.php on line 4

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: internal links seo, ninja seo links, seo tools, seo links, seo

ninja-seo-links/ninja-seo-links.php Passed 13 tests

The primary PHP file in "Ninja SEO Links" version 0.1 is used by WordPress to initiate all plugin functionality
127 characters long description:
With Ninja SEO Links plugin you can automatically add strategic links to desired keywords in the entries of your Wordpress blog

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin430 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP564104419
JavaScript10011

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin