72% moradam-seo

Code Review | Moradam SEO

WordPress plugin Moradam SEO scored72%from 54 tests.

About plugin

  • Plugin page: moradam-seo
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.8
  • WordPress version: 6.3.1
  • First release: Dec 17, 2021
  • Latest release: Jan 4, 2022
  • Number of updates: 17
  • Update frequency: every 1.1 days
  • Top authors: moradam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /832 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▲0.22ms] Passed 4 tests

A check of server-side resources used by Moradam SEO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.32 ▼2.44
Dashboard /wp-admin3.38 ▲0.0749.75 ▲3.13
Posts /wp-admin/edit.php3.49 ▲0.1347.68 ▲2.46
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.64 ▼1.86
Media Library /wp-admin/upload.php3.30 ▲0.0739.52 ▲2.73
Rakipler /wp-admin/admin.php?page=competitors3.2929.16
En İyi Sayfalar /wp-admin/admin.php?page=best-pages3.2931.91
En İyi Anahtar Kelimeler /wp-admin/admin.php?page=moradam-seo3.2927.95

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Moradam SEO
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7213.59 ▼0.764.86 ▲3.2443.62 ▼2.53
Dashboard /wp-admin2,227 ▲475.37 ▼0.21106.87 ▲10.7080.35 ▲39.85
Posts /wp-admin/edit.php2,146 ▲462.51 ▲0.5041.70 ▲5.5934.20 ▼3.42
Add New Post /wp-admin/post-new.php1,723 ▲19723.05 ▼0.04666.66 ▼8.1137.56 ▼22.35
Media Library /wp-admin/upload.php1,446 ▲465.03 ▲0.82113.49 ▲19.8478.12 ▲33.09
Rakipler /wp-admin/admin.php?page=competitors1,6232.80744.3653.57
En İyi Sayfalar /wp-admin/admin.php?page=best-pages1,7144.52640.2547.56
En İyi Anahtar Kelimeler /wp-admin/admin.php?page=moradam-seo1,6332.71179.4147.02

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/moradam-seo/admin/partials/moradam-seo-header.php
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(MORADAM_SEO_PATHadmin/partials/moradam-seo-header.php): failed to open stream: No such file or directory in wp-content/plugins/moradam-seo/admin/pages/moradam-seo-competitors.php on line 22
    • > PHP Warning
      require_once(MORADAM_SEO_PATHadmin/partials/moradam-seo-header.php): failed to open stream: No such file or directory in wp-content/plugins/moradam-seo/admin/pages/moradam-seo-best-pages.php on line 10
    • > PHP Warning
      Use of undefined constant MORADAM_SEO_PATH - assumed 'MORADAM_SEO_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/moradam-seo/admin/pages/moradam-seo-keywords-on-top.php on line 22
    • > PHP Fatal error
      require_once(): Failed opening required 'MORADAM_SEO_PATHadmin/partials/moradam-seo-header.php' (include_path='.:/usr/share/php') in wp-content/plugins/moradam-seo/admin/pages/moradam-seo-best-pages.php on line 10
    • > PHP Warning
      Use of undefined constant MORADAM_SEO_PATH - assumed 'MORADAM_SEO_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/moradam-seo/admin/pages/moradam-seo-competitors.php on line 22
    • > PHP Warning
      require_once(MORADAM_SEO_PATHadmin/partials/moradam-seo-header.php): failed to open stream: No such file or directory in wp-content/plugins/moradam-seo/admin/pages/moradam-seo-keywords-on-top.php on line 22
    • > PHP Warning
      Use of undefined constant MORADAM_SEO_PATH - assumed 'MORADAM_SEO_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/moradam-seo/admin/pages/moradam-seo-best-pages.php on line 10
    • > PHP Fatal error
      require_once(): Failed opening required 'MORADAM_SEO_PATHadmin/partials/moradam-seo-header.php' (include_path='.:/usr/share/php') in wp-content/plugins/moradam-seo/admin/pages/moradam-seo-competitors.php on line 22
    • > PHP Fatal error
      require_once(): Failed opening required 'MORADAM_SEO_PATHadmin/partials/moradam-seo-header.php' (include_path='.:/usr/share/php') in wp-content/plugins/moradam-seo/admin/pages/moradam-seo-keywords-on-top.php on line 22

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=moradam-seo
    • > Console-api (warning) in wp-includes/js/dist/vendor/moment.min.js?ver=2.29.4+0:2827
    Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.\nArguments: \n[0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: 10/24/2017, _f: null, _strict: undefined, _locale: [object Object]\nError\n at Function.createFromInputFallback (/wp-includes/js/dist/vendor/moment.min.js?ver=2.29.4:1:3257)\n at Nt (/wp-includes/js/dist/vendor/moment.min.js?ver=2.29.4:1:21589)\n at Pt (/wp-includes/js/dist/vendor/moment.min.js?ver=2.29.4:1:22165)\n at W (/wp-includes/js/dist/vendor/moment.min.js?ver=2.29.4:1:22248)\n at _ (/wp-includes/js/dist/vendor/moment.min.js?ver=2.29.4:1:207)\n at new a (/wp-content/plugins/moradam-seo/admin/js/libs/daterangepicker.min.js?ver=1.0.7:7:3619)\n at HTMLDivElement.\u003Canonymous> (/wp-content/plugins/moradam-seo/admin/js/libs/daterangepicker.min.js?ver=1.0.7:7:31993)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:1594)\n at e.fn.daterangepicker (/wp-content/plugins/moradam-seo/admin/js/libs/daterangepicker.min.js?ver=1.0.7:7:31876)
    • > GET request to /wp-admin/admin.php?page=competitors
    • > Javascript (severe) in unknown
    /wp-content/plugins/moradam-seo/admin/js/moradam-seo-competitors.js?ver=1.0.7 350:56 Uncaught TypeError: Cannot read properties of null (reading 'result')

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in moradam-seo/assets to your readme.txt
You can look at the official readme.txt

moradam-seo/moradam-seo.php 85% from 13 tests

This is the main PHP file of "Moradam SEO" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 373 characters long)
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected7,323 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript87953155,152
CSS2135281,285
PHP11200418882
SVG1004

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.48
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin