78% ninjaseo

Code Review | NinjaSEO by 500apps – WordPress SEO Plugin To Improve Search Engine Rankings

WordPress plugin NinjaSEO by 500apps – WordPress SEO Plugin To Improve Search Engine Rankings scored78%from 54 tests.

About plugin

  • Plugin page: ninjaseo
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1
  • WordPress version: 6.3.1
  • First release: Apr 9, 2021
  • Latest release: Dec 16, 2022
  • Number of updates: 38
  • Update frequency: every 16.2 days
  • Top authors: 500appsmarketing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,285 total downloads

Benchmarks

Plugin footprint 83% 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.63MB] [CPU: ▼18.46ms] Passed 4 tests

This is a short check of server-side resources used by NinjaSEO by 500apps – WordPress SEO Plugin To Improve Search Engine Rankings
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.17 ▼5.59
Dashboard /wp-admin3.39 ▲0.0549.06 ▼8.97
Posts /wp-admin/edit.php3.36 ▲0.0061.48 ▲15.12
Add New Post /wp-admin/post-new.php3.24 ▼2.6531.70 ▼61.75
Media Library /wp-admin/upload.php3.31 ▲0.0936.48 ▲2.48
NinjaSEO /wp-admin/admin.php?page=ninjaseo/classes/class.ninjaseoplugin_ninjaseo.php3.2831.32
Other Apps /wp-admin/admin.php?page=Other3.2837.66

Server storage [IO: ▲1.71MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

NinjaSEO by 500apps – WordPress SEO Plugin To Improve Search Engine Rankings: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9913.78 ▼0.541.74 ▲0.1043.36 ▲5.33
Dashboard /wp-admin2,390 ▲2025.48 ▼0.4299.64 ▼4.0781.20 ▲43.92
Posts /wp-admin/edit.php2,285 ▲1932.51 ▲0.4764.30 ▲29.0754.21 ▲23.59
Add New Post /wp-admin/post-new.php6,274 ▲4,73821.88 ▼1.36926.49 ▲239.3866.48 ▲12.18
Media Library /wp-admin/upload.php1,593 ▲2084.64 ▲0.44128.71 ▲31.2448.13 ▲1.27
Crawl Map /wp-admin/admin.php?page=Crawl Map2,5582.7429.2826.70
NinjaSEO /wp-admin/admin.php?page=ninjaseo/classes/class.ninjaseoplugin_ninjaseo.php2,5642.8529.7623.97
Page Grader /wp-admin/admin.php?page=Page Grader2,80519.38333.2636.59
Other Apps /wp-admin/admin.php?page=Other2,4962.1835.4429.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

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
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ninjaseo/classes/frame.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ninjaseo/classes/ninjaseo_content.php:2
    • > PHP Notice
      Undefined variable: frame_url in wp-content/plugins/ninjaseo/classes/frame.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ninjaseo/ninjaseo.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ninjaseo/ninjaseo_functions.php:216
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ninjaseo/classes/ninjaseo_appup.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=Crawl Map
    • > Javascript (severe) in unknown
    /wp-content/plugins/ninjaseo/js/ninjaseo_admin.js?ver=1696891501 113:18 Uncaught TypeError: Cannot read properties of null (reading 'append')
    • > GET request to /wp-admin/admin.php?page=ninjaseo/classes/class.ninjaseoplugin_ninjaseo.php
    • > Javascript (severe) in unknown
    /wp-content/plugins/ninjaseo/js/ninjaseo_admin.js?ver=1696891503 113:18 Uncaught TypeError: Cannot read properties of null (reading 'append')
    • > GET request to /wp-admin/admin.php?page=Page Grader
    • > Javascript (severe) in unknown
    /wp-content/plugins/ninjaseo/js/ninjaseo_admin.js?ver=1696891505 113:18 Uncaught TypeError: Cannot read properties of null (reading 'append')
    • > GET request to /wp-admin/admin.php?page=Other
    • > Javascript (severe) in unknown
    /wp-content/plugins/ninjaseo/js/ninjaseo_admin.js?ver=1696891506 113:18 Uncaught TypeError: Cannot read properties of null (reading 'append')
    • > GET request to /wp-admin/admin.php?page=Other
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught DOMException: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt might help

ninjaseo/ninjaseo.php Passed 13 tests

This is the main PHP file of "NinjaSEO by 500apps – WordPress SEO Plugin To Improve Search Engine Rankings" version 0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
139 characters long description:
NinjaSEO is an exclusive page grader and web crawler plugin to help website owners find and fix pressing issues to improve seo performance.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,295 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
SVG4001,138
PHP77470807
CSS128190
JavaScript1523136
INI15024

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity5.50
▷ Minimum class complexity4.00
▷ Maximum class complexity7.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16100.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 1.18MB with 0.81MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png81.59KB28.11KB▼ 65.55%
assets/screenshot-6.png92.68KB31.02KB▼ 66.53%
assets/screenshot-9.png74.30KB26.23KB▼ 64.70%
assets/screenshot-7.png130.10KB34.38KB▼ 73.57%
assets/screenshot-11.png137.17KB37.70KB▼ 72.52%