72% seo-local-rank

Code Review | True Ranker

WordPress plugin True Ranker scored72%from 54 tests.

About plugin

  • Plugin page: seo-local-rank
  • Plugin version: 2.2.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Aug 20, 2019
  • Latest release: Sep 29, 2023
  • Number of updates: 70
  • Update frequency: every 21.5 days
  • Top authors: optimizza (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

700+ active /6,955 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼11.05ms] Passed 4 tests

Analyzing server-side resources used by True Ranker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.46 ▼7.30
Dashboard /wp-admin3.37 ▲0.0748.14 ▼2.86
Posts /wp-admin/edit.php3.48 ▲0.1347.66 ▼6.41
Add New Post /wp-admin/post-new.php5.95 ▲0.0690.24 ▼27.61
Media Library /wp-admin/upload.php3.29 ▲0.0635.94 ▼1.90

Server storage [IO: ▲25.98MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please fix the following
  • Filesystem usage must be lower than 25MB (currently using 25.98MB)
Filesystem: 2,368 new files
Database: 1 new table, 6 new options
New tables
wp_seolocalrank
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for True Ranker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.21 ▼0.502.11 ▲0.5138.09 ▼2.82
Dashboard /wp-admin2,213 ▲365.56 ▼0.0590.39 ▲0.5985.67 ▲44.84
Posts /wp-admin/edit.php2,118 ▲211.98 ▼0.0338.87 ▼1.5334.43 ▼5.62
Add New Post /wp-admin/post-new.php1,539 ▲223.42 ▲5.07597.77 ▼15.36144.59 ▲76.51
Media Library /wp-admin/upload.php1,412 ▲154.21 ▲0.0199.51 ▼1.9872.86 ▲26.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_seolocalrank
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 113× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/seo-local-rank/vendor/guzzlehttp/psr7/src/Request.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Serps\\SearchEngine\\Google\\Parser\\ParsingRuleInterface' not found in wp-content/plugins/seo-local-rank/vendor/serps/search-engine-google/src/Parser/Evaluated/Rule/Natural/Classical/ClassicalCardsResultZ1m.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'Serps\\SearchEngine\\Google\\Parser\\ParsingRuleInterface' not found in wp-content/plugins/seo-local-rank/vendor/serps/search-engine-google/src/Parser/Evaluated/Rule/Natural/KnowledgeCard.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Serps\\SearchEngine\\Google\\Parser\\AbstractAdwordsParser' not found in wp-content/plugins/seo-local-rank/vendor/serps/search-engine-google/src/Parser/Evaluated/AdwordsParser.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Serps\\Exception\\RequestError\\CaptchaException' not found in wp-content/plugins/seo-local-rank/vendor/serps/search-engine-google/src/Exception/GoogleCaptchaException.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Serps\\Core\\Captcha\\AsyncCaptchaSolvingInterface' not found in wp-content/plugins/seo-local-rank/vendor/serps/core/src/Core/Captcha/AsyncCaptchaSolvingCallback.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Serps\\Exception\\RequestError\\RequestErrorException' not found in wp-content/plugins/seo-local-rank/vendor/serps/core/src/Exception/RequestError/InvalidResponseException.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Serps\\Core\\Http\\HttpClientInterface' not found in wp-content/plugins/seo-local-rank/vendor/serps/http-client-curl/src/CurlClient.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Serps\\SearchEngine\\Google\\Parser\\AbstractAdwordsParser' not found in wp-content/plugins/seo-local-rank/vendor/serps/search-engine-google/src/Parser/Evaluated/MobileAdwordsParser.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Serps\\Exception' not found in wp-content/plugins/seo-local-rank/vendor/serps/http-client-curl/src/CurlClient/CurlException.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is missing
  • Contributors: There were no tags found
  • Screenshots: Please add descriptions for these screenshots #4, #5 in seo-local-rank/assets to your readme.txt
Please take inspiration from this readme.txt

seo-local-rank/seolocalrank.php 85% from 13 tests

This is the main PHP file of "True Ranker" version 2.2.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("seo-local-rank.php" instead of "seolocalrank.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 204 characters long)

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
Everything looks great! No dangerous files found in this plugin221,375 lines of code in 2,175 files:
LanguageFilesBlank linesComment linesLines of code
JSON1428061,232
CSS6612,49754447,588
JavaScript1897,4948,81635,813
YAML40025,174
SVG1,60402415,834
PHP2013,6417,96513,373
HTML19378478,575
Sass32796815,860
LESS19602715,547
Markdown1661601,201
XML1000653
PO File1227323525

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity8.12
▷ Minimum class complexity1.00
▷ Maximum class complexity99.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces31
Interfaces24
Traits5
Classes153
▷ Abstract classes74.58%
▷ Concrete classes14695.42%
▷ Final classes32.05%
Methods1,145
▷ Static methods1049.08%
▷ Public methods98485.94%
▷ Protected methods605.24%
▷ Private methods1018.82%
Functions149
▷ Named functions2919.46%
▷ Anonymous functions12080.54%
Constants137
▷ Global constants21.46%
▷ Class constants13598.54%
▷ Public constants135100.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
51 PNG files occupy 0.22MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/vendor/datatables/extensions/Plugins/integration/bootstrap/images/sort_asc.png1.09KB0.25KB▼ 77.46%
admin/vendor/datatables/extensions/Editor/images/shadow_right.png1.17KB0.77KB▼ 34.19%
admin/vendor/datatables/extensions/TableTools/images/background.png0.92KB0.08KB▼ 91.21%
admin/vendor/datatables/extensions/AutoFill/images/filler.png1.02KB0.12KB▼ 88.27%
admin/vendor/datatables/extensions/TableTools/images/collection_hover.png1.17KB0.23KB▼ 80.32%