55% rank4win

Code Review | RANK4WIN SEO SEMANTIC - SEMANTIC SEO Plugin For Wordpress To Boost Your SEO Traffic

WordPress plugin RANK4WIN SEO SEMANTIC - SEMANTIC SEO Plugin For Wordpress To Boost Your SEO Traffic scored55%from 54 tests.

About plugin

  • Plugin page: rank4win
  • Plugin version: 1.3.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.0.1
  • WordPress version: 6.3.1
  • First release: Sep 9, 2019
  • Latest release: Aug 3, 2022
  • Number of updates: 89
  • Update frequency: every 13.9 days
  • Top authors: rank4win (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /9,391 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲1.75MB] [CPU: ▲416.47ms] 50% from 4 tests

This is a short check of server-side resources used by RANK4WIN SEO SEMANTIC - SEMANTIC SEO Plugin For Wordpress To Boost Your SEO Traffic
Please fix the following
  • CPU: The total CPU usage must kept under 500.00ms (currently 587.28ms on /wp-admin/admin.php?page=r4w_export_configuration)
  • Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 416.47ms on /wp-admin/admin.php?page=r4w_analysis)
PageMemory (MB)CPU Time (ms)
Home /5.04 ▲1.5766.28 ▲24.15
Dashboard /wp-admin5.16 ▲1.85621.65 ▲571.94
Posts /wp-admin/edit.php5.16 ▲1.80593.70 ▲548.03
Add New Post /wp-admin/post-new.php7.76 ▲1.88664.95 ▲579.22
Media Library /wp-admin/upload.php4.98 ▲1.75561.82 ▲521.74
hidden /wp-admin/admin.php?page=r4w_subscription4.64282.39
hidden /wp-admin/admin.php?page=r4w_download_str_image4.92554.35
hidden /wp-admin/admin.php?page=r4w_editor4.95572.63
hidden /wp-admin/admin.php?page=r4w_auth_forgot4.97611.22
hidden /wp-admin/admin.php?page=r4w_auth_login4.96608.10
hidden /wp-admin/admin.php?page=r4w_update_available5.001,000.01
1) My account /wp-admin/admin.php?page=r4w_account4.64262.48
2) Settings /wp-admin/admin.php?page=r4w_settings4.64252.65
hidden /wp-admin/admin.php?page=r4w_export_configuration4.99587.28
4) Positions & Analyses /wp-admin/admin.php?page=r4w_analysis4.64262.88

Server storage [IO: ▲3.12MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 395 new files
Database: 4 new tables, 6 new options
New tables
wp_rank4win_taxonomy
wp_rank4win_process
wp_rank4win_document
wp_rank4win_app
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for RANK4WIN SEO SEMANTIC - SEMANTIC SEO Plugin For Wordpress To Boost Your SEO Traffic
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,199 ▲45317.48 ▲2.732.03 ▲0.3032.01 ▼7.39
Dashboard /wp-admin2,576 ▲3918.13 ▲2.24158.60 ▲57.6446.94 ▲4.67
Posts /wp-admin/edit.php2,564 ▲4725.39 ▲3.3456.90 ▲14.8748.08 ▲11.30
Add New Post /wp-admin/post-new.php1,757 ▲22422.45 ▼0.59712.20 ▲32.1749.23 ▼10.70
Media Library /wp-admin/upload.php1,633 ▲2426.57 ▲2.24104.45 ▲8.2244.77 ▼1.78
hidden /wp-admin/admin.php?page=r4w_subscription1,2565.2649.2733.73
hidden /wp-admin/admin.php?page=r4w_download_str_image1,2535.4248.6233.71
hidden /wp-admin/admin.php?page=r4w_editor1,2565.1751.0636.29
hidden /wp-admin/admin.php?page=r4w_auth_forgot1,2595.2752.6530.59
hidden /wp-admin/admin.php?page=r4w_auth_login1,2595.2552.2032.09
hidden /wp-admin/admin.php?page=r4w_update_available1,2495.1949.0432.25
1) My account /wp-admin/admin.php?page=r4w_account1,2535.2850.1033.12
2) Settings /wp-admin/admin.php?page=r4w_settings1,2565.2849.1832.11
hidden /wp-admin/admin.php?page=r4w_export_configuration2,5798.1898.9146.88
4) Positions & Analyses /wp-admin/admin.php?page=r4w_analysis1,2565.2550.5331.58

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 does not fully uninstall, leaving 2 tables in the database
    • wp_rank4win_taxonomy
    • wp_rank4win_document
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 0% 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)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=r4w_download_str_image
    • > Notice in wp-content/plugins/rank4win/_inc/class/class.app.php+1100
    Undefined index: hash

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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/rank4win/index.php
  • 81× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      Use of undefined constant r4w_bdd_table_document - assumed 'r4w_bdd_table_document' (this will throw an Error in a future version of PHP) in wp-content/plugins/rank4win/tpl/html_meta_title/_root.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/rank4win/tpl/html_meta_title/_root.php:7
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/rank4win/tpl/account/_root.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/rank4win/tpl/box_answer/_root.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/rank4win/tpl/box_synonymous/_root.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function r4w_wizard() in wp-content/plugins/rank4win/tpl/analysis/_root.php:4
    • > PHP Notice
      Undefined variable: ctd in wp-content/plugins/rank4win/tpl/auth_otp/_root.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to a member function set() on null in wp-content/plugins/rank4win/tpl/auth_otp/_root.php:8
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/rank4win/tpl/box_page/_root.php on line 20
    • > PHP Notice
      Undefined variable: ctd in wp-content/plugins/rank4win/tpl/auth_login/_root.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=r4w_analysis
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=r4w_auth_login 16:31 Uncaught ReferenceError: jQuery is not defined
    • > GET request to /wp-admin/admin.php?page=r4w_auth_forgot
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=r4w_auth_forgot 16:31 Uncaught ReferenceError: jQuery is not defined
    • > GET request to /wp-admin/admin.php?page=r4w_update_available
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=r4w_update_available 16:31 Uncaught ReferenceError: jQuery is not defined
    • > GET request to /wp-admin/admin.php?page=r4w_export_configuration
    • > Javascript (severe) in unknown
    /wp-admin/ 16:31 Uncaught ReferenceError: jQuery is not defined

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 75% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please a description for screenshot #17 in rank4win/assets to your readme.txt
  • Screenshots: Screenshot #10 (Configuring Indexing and Tracking Links in a Page.) image not found
  • Requires php: Version not formatted correctly
Please take inspiration from this readme.txt

rank4win/rank4win.php 85% from 13 tests

The main PHP script in "RANK4WIN SEO SEMANTIC - SEMANTIC SEO Plugin For Wordpress To Boost Your SEO Traffic" version 1.3.7 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 415 characters long)
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected39,220 lines of code in 236 files:
LanguageFilesBlank linesComment linesLines of code
PHP569561,20210,924
CSS37392710,303
JavaScript471,1962,3069,278
PO File32,6813,5088,431
Markdown11020191
SVG920093

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes250.00%
▷ Concrete classes250.00%
▷ Final classes00.00%
Methods39
▷ Static methods12.56%
▷ Public methods1948.72%
▷ Protected methods2051.28%
▷ Private methods00.00%
Functions176
▷ Named functions14783.52%
▷ Anonymous functions2916.48%
Constants14
▷ Global constants14100.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
5 PNG files occupy 0.24MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon-selected.png1.85KB0.33KB▼ 82.23%
assets/img/flags@2x.png170.28KB68.04KB▼ 60.04%
assets/img/hsizegrip.png0.09KB0.13KB0.00%
assets/img/flags.png69.20KB23.42KB▼ 66.16%
assets/img/vsizegrip.png0.09KB0.13KB0.00%